aboutsummaryrefslogtreecommitdiff
path: root/src/bootstrap.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-05-29 22:58:20 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-05-29 22:58:20 +0200
commitb0049442eee94a1636490c091215bd706f819558 (patch)
treee44b18eddfcc0134ed4fc2b38821740617fac694 /src/bootstrap.py
parentBugfix: it was not possible to delete a user with categories. (diff)
downloadnewspipe-b0049442eee94a1636490c091215bd706f819558.tar.gz
newspipe-b0049442eee94a1636490c091215bd706f819558.tar.bz2
newspipe-b0049442eee94a1636490c091215bd706f819558.zip
Fixed some depreciations with the new version of Flask.
Diffstat (limited to 'src/bootstrap.py')
-rw-r--r--src/bootstrap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap.py b/src/bootstrap.py
index 2c5f9951..146d9176 100644
--- a/src/bootstrap.py
+++ b/src/bootstrap.py
@@ -6,7 +6,7 @@
import os
import conf
import logging
-import flask.ext.restless
+import flask_restless
from urllib.parse import urlsplit
def set_logging(log_path, log_level=logging.INFO,
@@ -20,7 +20,7 @@ def set_logging(log_path, log_level=logging.INFO,
logger.setLevel(log_level)
from flask import Flask
-from flask.ext.sqlalchemy import SQLAlchemy
+from flask_sqlalchemy import SQLAlchemy
# Create Flask application
application = Flask('web')
@@ -53,7 +53,7 @@ if not application.config['SECURITY_PASSWORD_SALT']:
db = SQLAlchemy(application)
# Create the Flask-Restless API manager.
-manager = flask.ext.restless.APIManager(application, flask_sqlalchemy_db=db)
+manager = flask_restless.APIManager(application, flask_sqlalchemy_db=db)
def populate_g():
from flask import g
bgstack15