Fix allowed hosts
This commit is contained in:
parent
e85d38529f
commit
0d88f255c5
1 changed files with 6 additions and 1 deletions
|
@ -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!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = os.getenv('DJANGO_ENV', 'prod') == 'dev'
|
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')), ]
|
ADMINS = [('Gabriel', os.getenv('ADMIN_EMAIL')), ]
|
||||||
SERVER_EMAIL = os.getenv('SERVER_EMAIL')
|
SERVER_EMAIL = os.getenv('SERVER_EMAIL')
|
||||||
|
|
Loading…
Reference in a new issue