diff --git a/app.py b/app.py index c9e7db3..8d89b5f 100644 --- a/app.py +++ b/app.py @@ -24,6 +24,7 @@ def create_app(): app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False app.config['SECRET_KEY'] = os.getenv('SECRET_KEY', 'your-secure-secret-key-here') app.config['UPLOAD_FOLDER'] = os.path.join(app.root_path, 'static', 'uploads') + app.config['CSS_VERSION'] = os.getenv('CSS_VERSION', '1.0.0') # Add CSS version for cache busting # Initialize extensions db.init_app(app) @@ -36,6 +37,10 @@ def create_app(): def inject_csrf_token(): return dict(csrf_token=generate_csrf()) + @app.context_processor + def inject_config(): + return dict(config=app.config) + # User loader for Flask-Login @login_manager.user_loader def load_user(user_id): diff --git a/templates/auth/login.html b/templates/auth/login.html index bab79eb..b763b3f 100644 --- a/templates/auth/login.html +++ b/templates/auth/login.html @@ -6,8 +6,8 @@