ValueError:无法配置处理程序'null':无法解析'django.utils.log.NullHandler':没有名为NullHandler的模块

时间:2016-04-08 09:55:30

标签: python django

我在运行所有django项目的python manage.py runserver时遇到错误。我正在使用django 1.6。

我的项目运行得非常好。然后我在我的虚拟环境中安装了django-subdomains和django-gcm软件包用于某些实现,并且错误开始出现在所有项目中(可能这与错误有关,所以我提到过)。然后我卸载了包,但错误仍然是

我的错误堆栈跟踪是:

    Unhandled exception in thread started by <function wrapper at    0xabcddf4>
Traceback (most recent call last):
  File "/home/shivam/virtual/venv/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
  File "/home/shivam/virtual/venv/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
  File "/home/shivam/virtual/venv/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 249, in raise_last_exception
six.reraise(*_exception)
  File "/home/shivam/virtual/venv/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
  File "/home/shivam/virtual/venv/local/lib/python2.7/site-packages/django/__init__.py", line 17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
  File "/home/shivam/virtual/venv/local/lib/python2.7/site-packages/django/utils/log.py", line 71, in configure_logging
logging_config_func(logging_settings)
  File "/usr/lib/python2.7/logging/config.py", line 777, in dictConfig
dictConfigClass(config).configure()
  File "/usr/lib/python2.7/logging/config.py", line 575, in configure
'%r: %s' % (name, e))

ValueError:无法配置处理程序'null':无法解析'django.utils.log.NullHandler':没有名为NullHandler的模块

0 个答案:

没有答案