dev_settings.py 880 Bytes
Newer Older
1 2 3 4 5 6 7
from settings import INSTALLED_APPS, DEBUG
import os

PROJECT_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = True

8 9 10
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'http'

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
# Make this unique.
SECRET_KEY = '3qm&@6264-=st16)7_xa*ds+31e0mqqs@+*!ud7gzt$tq!b^qn'

# No SSL when developing
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False

ADMINS = ()
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(PROJECT_DIR, 'db.sqlite'),
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': '',
    },
}
chris's avatar
chris committed
30 31
MEDIA_ROOT = os.path.join(PROJECT_DIR, 'media')
STATIC_ROOT = os.path.join(PROJECT_DIR, 'staticroot')
32
INSTALLED_APPS += (
33
        'debug_toolbar',
34
)