社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  问与答

求问:关于django日志的问题

853224158 • 8 年前 • 4651 次点击  

本人是菜鸟。。。刚入门。。。 在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' 求问原因。。。

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/1524
 
4651 次点击  
文章 [ 2 ]  |  最新文章 8 年前
曾哥
Reply   •   1 楼
曾哥    8 年前

setting发出来看看

有人说刘伟楠这个-weibo
Reply   •   2 楼
有人说刘伟楠这个-weibo    8 年前

为什么代码没有格式化。。。