ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / po / powerdns-admin / 0004-Fix-flask-session-and-powerdns-admin-compatibility.patch
blobb1aaa8c531d17d56edfef1564ea91c63793ff3e8
1 From 4b4ac26ef1cbb0b5b2354c251b216498325d0411 Mon Sep 17 00:00:00 2001
2 From: Flakebi <flakebi@t-online.de>
3 Date: Sat, 2 Dec 2023 16:31:50 +0100
4 Subject: [PATCH 4/6] Fix flask-session and powerdns-admin compatibility
6 flask-session and powerdns-admin both try to add sqlalchemy to flask.
7 Reuse the database for flask-session.
8 ---
9 powerdnsadmin/__init__.py | 1 +
10 1 file changed, 1 insertion(+)
12 diff --git a/powerdnsadmin/__init__.py b/powerdnsadmin/__init__.py
13 index d447a00..653af33 100755
14 --- a/powerdnsadmin/__init__.py
15 +++ b/powerdnsadmin/__init__.py
16 @@ -60,6 +60,7 @@ def create_app(config=None):
17 if 'SESSION_TYPE' in os.environ:
18 app.config['SESSION_TYPE'] = os.environ.get('SESSION_TYPE')
20 + app.config['SESSION_SQLALCHEMY'] = models.base.db
21 sess = Session(app)
23 # create sessions table if using sqlalchemy backend
24 --
25 2.42.0