Not sure whether this has already been covered. Maybe it is.
I'd like to specify the settings as a class instead of a module. Mostly
because I don't like the "from settings_local import *" pattern to extend
some base settings with machine specific settings. By having the
possibility to define it in a class, I could use inheritance.
from project.base_settings import BaseSettings
class MySettings(BaseSettings):
INSTALLED_APPS = BaseSettings.INSTALLED_APPS + [...]
...
It's also a solution for "lazy" settings, like said above. Create a
property in the settings class, etc..
This should easily be backwards compatible.
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/428b0f36-b4b5-40db-af97-39ebbba01b09%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.