aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-04-07 15:25:39 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-04-07 15:25:39 +0200
commitde64218230de6ea3e26ca9c8d744a4b82fa75f7e (patch)
treecd6062c1dbaa90b51a9527a7942b14947ab32eab
parentremoved now useless copy of manager.py with Docker (diff)
downloadnewspipe-de64218230de6ea3e26ca9c8d744a4b82fa75f7e.tar.gz
newspipe-de64218230de6ea3e26ca9c8d744a4b82fa75f7e.tar.bz2
newspipe-de64218230de6ea3e26ca9c8d744a4b82fa75f7e.zip
Initialization of Flask-Migrate.
-rw-r--r--newspipe/bootstrap.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/newspipe/bootstrap.py b/newspipe/bootstrap.py
index e54aad7a..dc233f09 100644
--- a/newspipe/bootstrap.py
+++ b/newspipe/bootstrap.py
@@ -8,6 +8,7 @@ import logging
import os
from flask import Flask, request
+from flask_migrate import Migrate
from flask_talisman import Talisman
from flask_babel import Babel, format_datetime
from flask_sqlalchemy import SQLAlchemy
@@ -66,6 +67,8 @@ set_logging(application.config["LOG_PATH"])
db = SQLAlchemy(application)
+migrate = Migrate(application, db)
+
talisman = Talisman(application, content_security_policy=application.config["CONTENT_SECURITY_POLICY"])
babel = Babel(application)
bgstack15