舉個(gè)例子吧
Django最佳實(shí)踐與部署:Nginx + Gunicorn + Supervisor(Ubuntu和CentOS)
http://sfdye.com/articles/django-best-practice-and-deployment-with-nginx-gunicorn-and-supervisor/
結(jié)果出現(xiàn)runserver --settings=...的時(shí)候出現(xiàn)報(bào)錯(cuò)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
怎么調(diào)整也找不到,很是奇怪
最后發(fā)現(xiàn) 原來(lái)又是這個(gè)萬(wàn)惡的
init.py
一定要在自建的文件夾里面建立這個(gè)空文件才會(huì)被django掃描為模塊啊....