Fix: User login and server console logging functionality.

This commit is contained in:
2024-10-29 17:18:39 +00:00
parent 80c98708da
commit 03fc1bd421
5 changed files with 14 additions and 8 deletions

View File

@@ -20,6 +20,8 @@ load_dotenv(find_dotenv())
# CLASSES
class Config:
is_development = False
is_production = False
# Miscellaneous
DEBUG = False # av.input_bool(os.getenv('DEBUG'), 'DEBUG', 'Config')
TESTING = False
@@ -68,11 +70,13 @@ class Config:
RECAPTCHA_PRIVATE_KEY = os.getenv('RECAPTCHA_PRIVATE_KEY')
class DevelopmentConfig(Config):
is_development = True
DEBUG = True
MAIL_DEBUG = True
# Add development-specific configuration variables
class ProductionConfig(Config):
is_production = True
# Add production-specific configuration variables
pass