Skip to content

Instantly share code, notes, and snippets.

@trey
Created September 24, 2008 02:40
Show Gist options
  • Save trey/12461 to your computer and use it in GitHub Desktop.
Save trey/12461 to your computer and use it in GitHub Desktop.
Things I like to add to settings.py
import os.path
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), "public/static/")
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), "templates"),
)
FORCE_LOWERCASE_TAGS = True
SESSION_COOKIE_NAME = 'your_project'
try:
from local_settings import *
except ImportError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment