Skip to content

Instantly share code, notes, and snippets.

@joshourisman
Created August 21, 2009 14:10
Show Gist options
  • Save joshourisman/172028 to your computer and use it in GitHub Desktop.
Save joshourisman/172028 to your computer and use it in GitHub Desktop.
My basic local_settings.py file for django projects
import os
PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_ROOT, '../local.db'),
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
DEBUG = True
MEDIA_ROOT = os.path.join(PROJECT_ROOT, '../media')
TEMPLATE_DIRS = (
os.path.join(PROJECT_ROOT, '../templates'),
)
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
INTERNAL_IPS = (
'127.0.0.1',
)
CACHE_BACKEND = 'dummy:///'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment