Skip to content

Instantly share code, notes, and snippets.

@igorsobreira
Created September 12, 2010 04:21
Show Gist options
  • Save igorsobreira/575839 to your computer and use it in GitHub Desktop.
Save igorsobreira/575839 to your computer and use it in GitHub Desktop.
import os
PROJECT_ROOT = os.path.dirname(__file__)
try:
execfile(os.path.join(PROJECT_ROOT, 'local_settings.py'), globals(), locals())
except IOError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment