diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-04-01 16:35:18 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-04-01 16:35:18 +0100 |
| commit | 2f3ffb8878770fa4b800d8a90489f6327e801cfa (patch) | |
| tree | 78f101dc6d851ebf514ff1f6ee30290ca132e747 /app/__init__.py | |
| parent | formatting and flow fixing (diff) | |
| download | AnnotateChange-2f3ffb8878770fa4b800d8a90489f6327e801cfa.tar.gz AnnotateChange-2f3ffb8878770fa4b800d8a90489f6327e801cfa.zip | |
Add version and contact details in footer
Diffstat (limited to 'app/__init__.py')
| -rw-r--r-- | app/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/__init__.py b/app/__init__.py index ec675e5..57bd4c4 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -28,6 +28,9 @@ def create_app(config_class=Config): app = Flask(__name__) app.config.from_object(config_class) + # Set the app version in the config (we use it in templates) + app.config['APP_VERSION'] = __version__ + # Initialize all extensions db.init_app(app) migrate.init_app(app, db) |
