Created
December 27, 2010 01:53
-
-
Save adambard/755797 to your computer and use it in GitHub Desktop.
Sample django development.py settings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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