GeoDjango 1.0.2 支持 django.contrib.messages 吗?

发布于 2024-12-11 01:59:21 字数 1775 浏览 0 评论 0原文

我想知道 GeoDjango 1.0.2 是否支持 django.contrib.messages,因为当我执行“python manage.pysyncdb”时,我收到以下错误消息。

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\__init__.py", line 340, in execute_manager
    utility.execute()
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\__init__.py", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\base.py", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\base.py", line 210, in execute
    translation.activate('en-us')
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\__init__.py", line 73, in activate
    return real_activate(language)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\__init__.py", line 43, in delayed_loader
    return g['real_%s' % caller](*args, **kwargs)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\trans_real.py", line 209, in activate
    _active[currentThread()] = translation(language)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\trans_real.py", line 198, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\trans_real.py", line 181, in _fetch
    app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:])
AttributeError: 'module' object has no attribute 'messages'

I am wondering if GeoDjango 1.0.2 supports django.contrib.messages because when I execute 'python manage.py syncdb', I am receiving the below error messages.

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\__init__.py", line 340, in execute_manager
    utility.execute()
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\__init__.py", line 295, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\base.py", line 192, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\core\management\base.py", line 210, in execute
    translation.activate('en-us')
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\__init__.py", line 73, in activate
    return real_activate(language)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\__init__.py", line 43, in delayed_loader
    return g['real_%s' % caller](*args, **kwargs)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\trans_real.py", line 209, in activate
    _active[currentThread()] = translation(language)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\trans_real.py", line 198, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "C:\Program Files\GeoDjango\Django-1.0.2-final\django\utils\translation\trans_real.py", line 181, in _fetch
    app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:])
AttributeError: 'module' object has no attribute 'messages'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半边脸i 2024-12-18 01:59:21

消息传递框架是在 Django 1.2 中添加的,因此您的问题的答案可能是“否”。 (参见https://docs.djangoproject.com/en/dev/ref/贡献/消息/。)

The messaging framework was added in Django 1.2, so the answer to your question is probably 'no.' (See https://docs.djangoproject.com/en/dev/ref/contrib/messages/.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文