Skip to content

Instantly share code, notes, and snippets.

@mdales
Created October 6, 2011 16:02
Show Gist options
  • Save mdales/1267789 to your computer and use it in GitHub Desktop.
Save mdales/1267789 to your computer and use it in GitHub Desktop.
Django settings import
import os
if os.path.exists('/etc/myapp_django_settings.py'):
execfile('/etc/myapp_django_settings.py')
if os.path.exists('local_django_settings.py'):
execfile('local_django_settings.py')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment