【问题标题】:Django App installation throws error require_debug_falseDjango App安装抛出错误require_debug_false
【发布时间】:2014-04-10 16:42:05
【问题描述】:

我在本地开发了一个基于 django 的网站。我的机器上安装了 Django 1.5.4。现在我想在 pythonanywhere 上测试该站点。它们只支持 Django 1.3 和 Django 1.6,但我读到大于 1.3 的版本应该在 1.6 下工作 (Reusing Django apps in own project wich require a lower django version)

在调用 syncdb 时出现错误:

File "manage.py", line 10, in <module>
   execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 429, in execute_from_command_line
   utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 252, in fetch_command
app_name = get_commands()[subcommand]
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 101, in get_commands
apps = settings.INSTALLED_APPS
 File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
self._setup()
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 142, in __init__
logging_config_func(self.LOGGING)
File "/usr/lib/python2.7/logging/config.py", line 803, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib/python2.7/logging/config.py", line 568, in configure 'filter %r: %s' % (name, e))

ValueError: Unable to configure filter 'require_debug_false': Cannot resolve 'django.utils.log.RequireDebugFalse': No module named RequireDebugFalse

我阅读了一些关于“require_debug_false”的问题,但没有找到解决方案。 在 Django 1.6 下使用我的 Django 项目需要进行哪些更改?

【问题讨论】:

    标签: python django pythonanywhere


    【解决方案1】:

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-14
    • 2020-05-29
    • 2023-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多