keep settings in database

2019-02-06 20:28发布

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?) ?

3条回答
仙女界的扛把子
3楼-- · 2019-02-06 20:58

Look into the django-dbsettings project.

查看更多
干净又极端
4楼-- · 2019-02-06 21:01

Django-settings is another alternative.

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

查看更多
登录 后发表回答