diff --git a/takahe/settings.py b/takahe/settings.py index 5a26596..e8e61ac 100644 --- a/takahe/settings.py +++ b/takahe/settings.py @@ -174,7 +174,7 @@ class Settings(BaseSettings): SETUP = Settings() # Don't allow automatic keys in production -if SETUP.DEBUG and SETUP.SECRET_KEY.startswith("autokey-"): +if not SETUP.DEBUG and SETUP.SECRET_KEY.startswith("autokey-"): print("You must set TAKAHE_SECRET_KEY in production") sys.exit(1) SECRET_KEY = SETUP.SECRET_KEY