如何解决django配置settings时遇到Could not import settings 'conf.local'
举个例子吧
Django最佳实践与部署:Nginx+Gunicorn+Supervisor(Ubuntu和CentOS)
http://sfdye.com/articles/django-best-practice-and-deployment-with-nginx-gunicorn-and-supervisor/
结果出现runserver--settings=...的时候出现报错Couldnotimportsettings'conf.local'(Isitonsys.path?Isthereanimporterrorinthesettingsfile?):N
omodulenamedconf.local
怎么调整也找不到,很是奇怪
最后发现原来又是这个万恶的
init.py
一定要在自建的文件夹里面建立这个空文件才会被django扫描为模块啊....
热门推荐
10 送给客人简短的祝福语
11 对转校同学祝福语简短
12 准妈妈花束祝福语简短
13 白族结婚祝福语简短大全
14 新年简短祝福语给亲人
15 给孩子祝福语简短创意
16 美丽祝福语老师文案简短
17 送偶像生日祝福语简短
18 毕业教师花语祝福语简短