bae部署时遇到settings文件导入问题
项目地址:funtuan.duapp.com
错误提示:
Load module failed
Traceback (most recent call last):
File "/home/bae/app/index.py", line 13, in <module>
application = WSGIApplication(get_wsgi_application())
File "/home/bae/app/deps/django/core/wsgi.py", line 14, in getwsgiapplication
django.setup()
File "/home/bae/app/deps/django/init.py", line 20, in setup
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
File "/home/bae/app/deps/django/conf/init.py", line 46, in getattr
self._setup(name)
File "/home/bae/app/deps/django/conf/init.py", line 42, in _setup
self._wrapped = Settings(settings_module)
File "/home/bae/app/deps/django/conf/init.py", line 98, in init
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'tuantuan.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot import name const
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果你是用wsgi启动的话,wsgi里的配置
WSGI.py的settings的路径写错了。