本人是菜鸟。。。刚入门。。。
在settings.py写了关于日志的配置,运行后发现爆了一堆错。。
Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x029654F8>
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 378, in resolve
found = self.importer(used)
ImportError: No module named 'project'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 546, in configure
filters[name] = self.configure_filter(filters[name])
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 675, in configure_filter
result = self.configure_custom(config)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 463, in configure_custom
c = self.resolve(c)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 391, in resolve
raise v
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 378, in resolve
found = self.importer(used)
ValueError: Cannot resolve 'project.logging.SpecialFilter': No module named 'project'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(*args, kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\core\management\commands\runserver.py", line 109, in inner_run
autoreload.raise_last_exception()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\utils\autoreload.py", line 249, in raise_last_exception
six.reraise(_exception)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\utils\six.py", line 685, in reraise
raise value.with_traceback(tb)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\utils\autoreload.py", line 226, in wrapper
fn(args, kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django__init__.py", line 17, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\django\utils\log.py", line 71, in configure_logging
logging_config_func(logging_settings)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 795, in dictConfig
dictConfigClass(config).configure()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\logging\config.py", line 549, in configure
'filter %r: %s' % (name, e))
ValueError: Unable to configure filter 'special': Cannot resolve 'project.logging.SpecialFilter': No module named 'project'
求问原因。。。