Commit 3f207ad7 authored by Arthur Assis's avatar Arthur Assis

Configures allowed hosts for dev and prod

parent efdb25df
Pipeline #34159700 failed with stage
in 3 minutes and 14 seconds
......@@ -51,9 +51,10 @@ else:
DEBUG = False
print('Running server with DEBUG=False')
if not DEBUG:
ALLOWED_HOSTS = ['localhost', '127.0.0.1']
if DEBUG:
ALLOWED_HOSTS = ['*']
else:
ALLOWED_HOSTS = [os.environ['PROD_URL']]
# Application definition
INSTALLED_APPS = [
......
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