idlesign / django-siteprefs

Reusable app for Django introducing site preferences system
https://github.com/idlesign/django-siteprefs
BSD 3-Clause "New" or "Revised" License
17 stars 6 forks source link

Populate django.conf.settings #23

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

https://github.com/idlesign/django-siteprefs/issues/16 looks to support third-party apps. The easiest group is those which read from django.conf.settings.

After siteprefs is finished loading the overrides, it could populate any missing values in django.conf.settings. Ideally it populates them with proxies clearly identified as duplicates of the overrides, so that they are not accidentally used again if reloading foo.settings.

This also helps with interoperability with other tools, such as

idlesign commented 4 years ago

Messing with django.conf.settings can be disastrous. Need to be very careful, and to apply patching only on demand.

jayvdb commented 4 years ago

Ya, my WIP needs "only on demand" added. It is only a POC to get the ball rolling.