Fix SECRET_KEY property issue

This commit is contained in:
directlx 2026-01-25 11:22:20 -05:00
parent 5abd4ddd76
commit 841110faca
1 changed files with 1 additions and 7 deletions

View File

@ -16,13 +16,7 @@ class DevelopmentConfig(Config):
class ProductionConfig(Config): class ProductionConfig(Config):
DEBUG = False DEBUG = False
SECRET_KEY = os.environ.get('SECRET_KEY')
@property
def SECRET_KEY(self):
key = os.environ.get('SECRET_KEY')
if not key:
raise ValueError('SECRET_KEY environment variable must be set in production')
return key
config = { config = {