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

Multiple PREFS_MODULE_NAME #22

Open jayvdb opened 4 years ago

jayvdb commented 4 years ago

There is a bit of variety in what people call their settings files.

django-allauth, django-rest-auth and django-rest-invitations all use app_settings.

While many other packages use settings.

It would be nice to be able to use PREFS_MODULE_NAME = ['app_settings', 'settings']

idlesign commented 4 years ago

Maybe we should support a more granular way.

PREFS_MODULE_NAMES = {
    '*': 'settings,
    'otherapp': 'apssettings',
}

or something. Need to think it over.

jayvdb commented 4 years ago

Ya, I would like that approach, to avoid lots of unneeded attempts at imports.