[settings] do not filter ImportError not related to finding the local_settings module

This commit is contained in:
Benjamin Dauvergne 2011-05-06 12:26:07 +02:00
parent 48dc389030
commit 13e40dcd6b
1 changed files with 3 additions and 3 deletions

View File

@ -295,13 +295,13 @@ LOGGING = {
}
}
# 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
except ImportError, e:
if 'local_settings' in e.args[0]:
pass
if USE_DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)