Skip to content

Instantly share code, notes, and snippets.

@adambard
Created December 27, 2010 01:53
Show Gist options
  • Save adambard/755797 to your computer and use it in GitHub Desktop.
Save adambard/755797 to your computer and use it in GitHub Desktop.
Sample django development.py settings.
from base import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_DIR = "/path/to/project/directory/"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': PROJECT_DIR + 'db/db.sqlite', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
MEDIA_ROOT = PROJECT_DIR + 'media/'
MEDIA_URL = '/site_media/'
TEMPLATE_DIRS = (
PROJECT_DIR + 'templates/'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment