Skip to content

Instantly share code, notes, and snippets.

@lig
Created January 23, 2013 08:47
Show Gist options
  • Save lig/4603250 to your computer and use it in GitHub Desktop.
Save lig/4603250 to your computer and use it in GitHub Desktop.
from dist import *
try:
from local import *
except ImportError:
from local_sample import *
from warnings import warn
warn(
'Local settings not found (settings/local.py).'
'Using local_sample.py instead.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment