No module named RequireDebugFalse

python@ubuntu118:~/pythonwork/mysite$ python manage.py runserver Traceback (most recent call last):   File "manage.py", line 14, in <module>     execute_manager(settings)   File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 438, in execute_manager     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 777, in dictConfig     dictConfigClass(config).configure()   File "/usr/lib/python2.7/logging/config.py", line 562, 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

django版本的问题,换成1.4就可以了。

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

扫码关注云+社区

领取腾讯云代金券