使用Django为每个应用程序设置不同 [英] Different settings for each application with Django
本文介绍了使用Django为每个应用程序设置不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为每个应用程序使用不同的设置?
How do I use different setting for each application?
例如:
-
http://www.mysite.com/app1 使用settings.py + app1的文件夹的local_settings.py ...
http://www.mysite.com/app1 uses the settings.py + local_settings.py of the app1's folder...
http://www.mysite.com/app2 使用app2的文件夹的settings.py + local_settings.py ...
http://www.mysite.com/app2 uses the settings.py + local_settings.py of the app2's folder...
等...
谢谢,
推荐答案
您可以检查从这里分离设置的所有方法: https://code.djangoproject .com / wiki / SplitSettings
这篇关于使用Django为每个应用程序设置不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文