aboutsummaryrefslogtreecommitdiff
path: root/app/__init__.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-04-01 16:35:18 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-04-01 16:35:18 +0100
commit2f3ffb8878770fa4b800d8a90489f6327e801cfa (patch)
tree78f101dc6d851ebf514ff1f6ee30290ca132e747 /app/__init__.py
parentformatting and flow fixing (diff)
downloadAnnotateChange-2f3ffb8878770fa4b800d8a90489f6327e801cfa.tar.gz
AnnotateChange-2f3ffb8878770fa4b800d8a90489f6327e801cfa.zip
Add version and contact details in footer
Diffstat (limited to 'app/__init__.py')
-rw-r--r--app/__init__.py3
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)