Commit 5ec63d85 authored by PCoder's avatar PCoder

Get ALLOWED_HOSTS and DEBUG from .env

parent 8b61db8d
Pipeline #175 canceled with stages
......@@ -32,7 +32,9 @@ AUTH_LDAP_START_TLS = os.environ.get('LDAP_USE_TLS', False)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
ALLOWED_HOSTS = []
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost')
DEBUG = os.environ.get('DEBUG', False)
INSTALLED_APPS = [
'django.contrib.admin',
......@@ -131,6 +133,3 @@ DATABASES = {
}
}
SECRET_KEY = os.environ.get('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get('DEBUG', False)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment