Skip to content
Snippets Groups Projects
Commit 0fa9cda5 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

add env allowed hosts

parent eb836dfb
No related branches found
No related tags found
No related merge requests found
DATABASE_URL="postgresql://institut:institut@localhost:5432/postgres"
# ALLOWED_HOSTS=dev.imaniti.org
# SECRET_KEY=asdf
# CSRF_TRUSTED_ORIGINS=https://dev.imaniti.org
......@@ -28,6 +28,10 @@ environ.Env.read_env(os.path.join(BASE_DIR, ".env"))
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", [])
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", [])
# Application definition
INSTALLED_APPS = [
......
......@@ -2,7 +2,6 @@ from .base import *
DEBUG = False
SECRET_KEY = env.str("SECRET_KEY")
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS")
try:
from .local import *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment