Commit 18254055 authored by MariaV's avatar MariaV
Browse files

Merge branch 'move_settings' into 'master'

move allowed hosts from settings.py to config file

See merge request !64
parents 8cf7653a a6142691
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ GITLAB_ACCOUNTS_SECRET_TOKEN=TokenHere
AUTO_ACCEPT_LIST=""
GITLAB_URL=https://gitlab.torproject.org/
DEBUG=True
ALLOWED_HOSTS=.localhost, 127.0.0.1, .anonticket.onionize.space,
+4 −1
Original line number Diff line number Diff line
@@ -28,7 +28,10 @@ SECRET_KEY = config('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = config('DEBUG', cast=bool)

ALLOWED_HOSTS = []
ALLOWED_HOSTS = config(
    'ALLOWED_HOSTS', 
    cast=lambda v: [s.strip() for s in v.split(',')]
    )
# Application definition

INSTALLED_APPS = [