I've come across a very neat way of providing default settings in an app by wrapping the Django settings in a LazySettings object that applies the django.conf.settings on top of the default values. It's used in sorl-thumbnail might be worth looking into to avoid the from fancypages.defaults import * we currently have to do in the settings.
I've come across a very neat way of providing default settings in an app by wrapping the Django settings in a
LazySettings
object that applies thedjango.conf.settings
on top of the default values. It's used in sorl-thumbnail might be worth looking into to avoid thefrom fancypages.defaults import *
we currently have to do in the settings.