运行迁移命令报错,大佬给看下呗
Closed this issue · 1 comments
django.setup()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/init.py", line 19, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/log.py", line 75, in configure_logging
logging_config_func(logging_settings)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/config.py", line 795, in dictConfig
dictConfigClass(config).configure()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/config.py", line 549, in configure
'filter %r: %s' % (name, e))
ValueError: Unable to configure filter 'request_id': Cannot resolve 'log_request_id.filters.RequestIDFilter': No module named 'log_request_id'
macdeMacBook-Pro-6:backend mac$
django.setup()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/init.py", line 19, in setup configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/log.py", line 75, in configure_logging logging_config_func(logging_settings) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/config.py", line 795, in dictConfig dictConfigClass(config).configure() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/logging/config.py", line 549, in configure 'filter %r: %s' % (name, e)) ValueError: Unable to configure filter 'request_id': Cannot resolve 'log_request_id.filters.RequestIDFilter': No module named 'log_request_id' macdeMacBook-Pro-6:backend mac$
应该是Python版本问题,换成Python9.3.x试试