-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdev.py
More file actions
31 lines (24 loc) · 779 Bytes
/
dev.py
File metadata and controls
31 lines (24 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import os
from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get("SECRET_KEY_DEV")
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
ALLOWED_HOSTS=['*']
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.environ.get("DB_NAME_DEV"),
'USER': os.environ.get("DB_USER_DEV"),
'PASSWORD': os.environ.get("DB_PASSW_DEV"),
'HOST': os.environ.get("DB_HOST_DEV"),
'PORT': os.environ.get("DB_PORT_DEV"),
}
}
try:
from .local import *
except ImportError:
pass