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

add settings files for production environment

add settings_production to override certain development settings
add settings_secrets.py.sample to illustrate usage of production secrets
parent 25b4e71e
No related branches found
No related tags found
No related merge requests found
# AKPlanning .gitignore
# Custom
# Secrets for production
AKPlanning/settings_secrets.py
# Created by https://www.gitignore.io/api/python,django,virtualenv,pycharm+all
# Edit at https://www.gitignore.io/?templates=python,django,virtualenv,pycharm+all
......
"""
This is the settings file used in production.
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
### SECURITY ###
DEBUG = False
ALLOWED_HOSTS = secrets.HOSTS
SECRET_KEY = secrets.SECRET_KEY
# TODO: DB, chaching, CSRF etc.
SECRET_KEY = ''
HOSTS = []
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