Place this snippet at the bottom of your settings.py file, and if a local_settings.py file is present in the directory, all settings in that file will override those in settings.py
1 2 3 4 | try:
from local_settings import *
except ImportError, exp:
pass
|
More like this
- Form field with fixed value by roam 1 week, 2 days ago
- New Snippet! by Antoliny0919 2 weeks, 2 days ago
- Add Toggle Switch Widget to Django Forms by OgliariNatan 3 months ago
- get_object_or_none by azwdevops 6 months, 3 weeks ago
- Mask sensitive data from logger by agusmakmun 8 months, 3 weeks ago
Comments
Ah, that's perfect! Much more elegant than my method... which is too embarrassing to mention here.
#
Please login first before commenting.