bornhack-website/bornhack/settings/development.py
2016-08-29 20:43:50 +02:00

29 lines
665 B
Python

import os
from .base import *
# INSTALLED_APPS += ['debug_toolbar', ]
SECRET_KEY = 'bornhack_development'
DEBUG = True
if os.environ.get('USE_SQLITE'):
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': local_dir('../.dev/dev.db'),
}
}
else:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'bornhack_dev',
'USER': 'bornhack',
'PASSWORD': 'bornhack',
'HOST': 'localhost',
'PORT': 5432,
}
}
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'