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 @@ Login - DocuPulse - - + + diff --git a/templates/auth/register.html b/templates/auth/register.html index d9143db..e75dab9 100644 --- a/templates/auth/register.html +++ b/templates/auth/register.html @@ -6,8 +6,8 @@ Register - DocuPulse - - + + diff --git a/templates/common/base.html b/templates/common/base.html index 131f4c0..193fb51 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -9,12 +9,12 @@ - - - + + + {% block extra_css %}{% endblock %} - + @@ -42,7 +42,7 @@ {% endif %}