keep settings in database

久未见 提交于 2020-01-10 14:18:10

问题


In a reusable application (in which i don't want to change any code) i would like to change a SETTING var that the application uses (in its forms and maybe other parts) to be dynamic (update its contents from a db table).

What would be the best approach to do that (a middleware maybe?) ?


回答1:


Look into the django-dbsettings project.




回答2:


Django-settings is another alternative.

It was created about a year after this question was originally asked.




回答3:


Here is a grid of multiple such projects.



来源:https://stackoverflow.com/questions/1394126/keep-settings-in-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!