最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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

 更新時間:2014年11月18日 09:54:19   投稿:hebedich  
這里記錄一下在項目中遇到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/
結(jié)果出現(xiàn)runserver --settings=...的時候出現(xiàn)報錯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) 原來又是這個萬惡的

init.py
一定要在自建的文件夾里面建立這個空文件才會被django掃描為模塊啊....

相關(guān)文章

最新評論

双辽市| 苏尼特左旗| 苍山县| 莆田市| 裕民县| 邵阳市| 溧阳市| 明溪县| 宁明县| 五原县| 响水县| 扶沟县| 绿春县| 夏津县| 咸丰县| 嘉峪关市| 陆河县| 台山市| 孟州市| 镇平县| 田东县| 莎车县| 简阳市| 望谟县| 永城市| 庆安县| 吴堡县| 中宁县| 渝北区| 鱼台县| 凌源市| 石屏县| 福清市| 股票| 科尔| 上犹县| 怀来县| 巴南区| 郓城县| 格尔木市| 丰城市|