Skip to content

Instantly share code, notes, and snippets.

@liddiard
Created November 3, 2013 01:49
Show Gist options
  • Save liddiard/7285585 to your computer and use it in GitHub Desktop.
Save liddiard/7285585 to your computer and use it in GitHub Desktop.
Django: different settings for development and production environments. Expects base.py and local.py settings files. local.py should be .gitignore'd. From http://gettingstartedwithdjango.com/en/lessons/introduction-and-launch/.
from .base import *
try:
from .local import *
except ImportError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment