Fix allowed hosts

This commit is contained in:
Gabriel Augendre 2018-04-02 14:34:00 +02:00
parent e85d38529f
commit 0d88f255c5
No known key found for this signature in database
GPG key ID: F360212F958357D4

View file

@ -26,7 +26,12 @@ SECRET_KEY = os.getenv('SECRET_KEY', 'x*8q7sd14&a%cu95$h@jl&&#bb&j(j*-6h5!3atz*v
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv('DJANGO_ENV', 'prod') == 'dev'
ALLOWED_HOSTS = ['localhost', 'workout.augendre.info', 'web', 'workout', 'workout-web']
ALLOWED_HOSTS = ['workout.augendre.info', 'web', 'workout', 'workout-web']
if DEBUG:
ALLOWED_HOSTS.extend([
'192.168.1.27',
'localhost',
])
ADMINS = [('Gabriel', os.getenv('ADMIN_EMAIL')), ]
SERVER_EMAIL = os.getenv('SERVER_EMAIL')