tangentlabs / django-fancypages

A Content Enhancement System for Django
https://django-fancypages.readthedocs.org
BSD 3-Clause "New" or "Revised" License
34 stars 11 forks source link

Adding a 'fancypages.conf' module to wrap settings #45

Open roadsideseb opened 10 years ago

roadsideseb commented 10 years ago

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.