1 From 86dcc9f308d2ca65704953f1ff9fe043d743e536 Mon Sep 17 00:00:00 2001
2 From: Flakebi <flakebi@t-online.de>
3 Date: Sat, 2 Dec 2023 16:33:45 +0100
4 Subject: [PATCH 6/6] Register modules before starting
6 Fixes flask 2.3: 'Blueprint' object has no attribute 'before_app_first_request'
9 1 file changed, 3 insertions(+)
11 diff --git a/run.py b/run.py
12 index 5ffcde3..52e719d 100755
16 #!/usr/bin/env python3
17 from powerdnsadmin import create_app
18 +from .powerdnsadmin.routes.index import register_modules
20 if __name__ == '__main__':
22 + with app.app_context():
24 app.run(debug=True, host=app.config.get('BIND_ADDRESS', '127.0.0.1'), port=app.config.get('PORT', '9191'))