Look for local_settings.py, for local settings changes

This commit is contained in:
Frédéric Péters 2010-05-31 16:58:15 +02:00
parent 3958632278
commit bad962a2b7
1 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,14 @@ INSTALLED_APPS = (
INTERNAL_IPS = ('127.0.0.1',)
# local_settings.py can be used to override environment-specific settings
# like database and email that differ between development and production.
try:
from local_settings import *
except ImportError:
pass
if USE_DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar',)