diff --git a/workout/settings.py b/workout/settings.py index 87b9f06..0b17734 100644 --- a/workout/settings.py +++ b/workout/settings.py @@ -24,9 +24,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'x*8q7sd14&a%cu95$h@jl&&#bb&j(j*-6h5!3atz*v%!zo3hd4' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = os.getenv('DJANGO_ENV', 'prod') == 'dev' -ALLOWED_HOSTS = ['*'] +ALLOWED_HOSTS = ['localhost', 'workout.augendre.info', 'web', 'workout', 'workout-web'] # Application definition