django-siteprefs icon indicating copy to clipboard operation
django-siteprefs copied to clipboard

Multiple PREFS_MODULE_NAME

Open jayvdb opened this issue 4 years ago • 2 comments

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']

jayvdb avatar May 28 '20 07:05 jayvdb

Maybe we should support a more granular way.

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

or something. Need to think it over.

idlesign avatar May 29 '20 14:05 idlesign

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

jayvdb avatar May 29 '20 15:05 jayvdb