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/runserver.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/runserver.py')
-rwxr-xr-x | src/runserver.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/runserver.py b/src/runserver.py index 0429449f..c7bdbff9 100755 --- a/src/runserver.py +++ b/src/runserver.py @@ -20,8 +20,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import calendar from bootstrap import conf, application, populate_g -from flask.ext.babel import Babel -from flask.ext.babel import format_datetime +from flask_babel import Babel, format_datetime if conf.ON_HEROKU: from flask_sslify import SSLify @@ -37,7 +36,7 @@ application.jinja_env.filters['datetime'] = format_datetime application.jinja_env.globals['conf'] = conf # Views -from flask.ext.restful import Api +from flask_restful import Api from flask import g with application.app_context(): |