问题
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