欢迎来到代码驿站!

Python代码

当前位置:首页 > 软件编程 > Python代码

如何解决django配置settings时遇到Could not import settings 'conf.local'

时间:2021-04-08 10:39:19|栏目:Python代码|点击:

举个例子吧

Django最佳实践与部署:Nginx + Gunicorn + Supervisor(Ubuntu和CentOS)
http://sfdye.com/articles/django-best-practice-and-deployment-with-nginx-gunicorn-and-supervisor/
结果出现runserver --settings=...的时候出现报错Could not import settings 'conf.local' (Is it on sys.path? Is there an import error in the settings file?): N
o module named conf.local

怎么调整也找不到,很是奇怪
最后发现 原来又是这个万恶的

init.py
一定要在自建的文件夹里面建立这个空文件才会被django扫描为模块啊....

上一篇:Python数据分析之双色球统计单个红和蓝球哪个比例高的方法

栏    目:Python代码

下一篇:Keras自动下载的数据集/模型存放位置介绍

本文标题:如何解决django配置settings时遇到Could not import settings 'conf.local'

本文地址:http://www.codeinn.net/misctech/97070.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有