diff --git a/workout/settings.py b/workout/settings.py index 2e37646..f9c43ae 100644 --- a/workout/settings.py +++ b/workout/settings.py @@ -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')