Skip to content

Instantly share code, notes, and snippets.

@mikluko
Created April 11, 2011 09:03
Show Gist options
  • Save mikluko/913258 to your computer and use it in GitHub Desktop.
Save mikluko/913258 to your computer and use it in GitHub Desktop.
try:
LOCAL_INSTALLED_APPS = LOCAL_MIDDLEWARE_CLASSES = tuple()
from local_settings import * # pylint: disable=W0401,W0614
INSTALLED_APPS += LOCAL_INSTALLED_APPS
MIDDLEWARE_CLASSES += LOCAL_MIDDLEWARE_CLASSES
except ImportError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment