如下图的方法运行 Django 应用,firstapp 里有自己的 settings 文件,其中导入了 mysite.settings,也定制了私有配配置项,firstapp.server 里传给 WSGIServer 的 application 是 mysite.wsgi.application,这个 application 在 django 内生成过程中需要配置文件的地方用的应该是 mysite.settings 配置文件吧? mysite.settings.INSTALLED_APPS 里没有添加 firstapp 也没有设置 firstapp 的 urls。小弟有个疑问:firstapp.settings 里的配置项是怎么生效的?
ps:这么拉起来能够正常访问 firstapp 应用的。
http://imgur.com/XRUuEGg
http://imgur.com/c11qGGo
ps:这么拉起来能够正常访问 firstapp 应用的。
http://imgur.com/XRUuEGg
http://imgur.com/c11qGGo