Skip to content
Snippets Groups Projects
Commit 5e2e7345 authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

add production DB config

parent 00af8be5
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ First, it imports all default settings, then overrides respective ones.
Secrets are stored in and imported from an additional file, not set under version control.
"""
from AKPlanning.settings import *
import AKPlanning.settings_secrets as secrets
......@@ -16,4 +15,22 @@ ALLOWED_HOSTS = secrets.HOSTS
SECRET_KEY = secrets.SECRET_KEY
# TODO: DB, chaching, CSRF etc.
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
### DATABASE ###
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'NAME': secrets.DB_NAME,
'USER': secrets.DB_USER,
'PASSWORD': secrets.DB_PASSWORD,
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
}
}
}
# TODO: caching
SECRET_KEY = ''
HOSTS = []
DB_NAME = ''
DB_USER = ''
DB_PASSWORD = ''
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment