[Solved]-Django specific settings app


I use the following methodology:

# some file in your app:

from django.conf import settings

MY_APP_SETTING = getattr(settings, 'MY_APP_SETTING', 'some default value')

This effectively allows end-users to customized the setting in their own settings.py, but still ensures that there’s always some default value set. You can now use MY_APP_SETTING at will in the rest of your code.


The link in your question was taking too long to load, so I just went ahead and answered. As it turns out, the method I suggested is the same as what it suggests, so yes, I’d consider that approach good ;).

Leave a comment