diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-05-29 22:58:20 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-05-29 22:58:20 +0200 |
commit | b0049442eee94a1636490c091215bd706f819558 (patch) | |
tree | e44b18eddfcc0134ed4fc2b38821740617fac694 /src/bootstrap.py | |
parent | Bugfix: it was not possible to delete a user with categories. (diff) | |
download | newspipe-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.py | 6 |
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 |