Rename imports to get rid of deprecation warnings

These imports have moved. One day importing them by the old name will
stop working. For now they just leave a warning in our logs. But better
not to have those warnings in our logs.
This commit is contained in:
Chris Hill-Scott
2017-07-27 15:17:17 +01:00
parent a60b3b4bc2
commit 5c49c08db7
2 changed files with 3 additions and 3 deletions

2
app.py
View File

@@ -1,5 +1,5 @@
import os
from flask.ext.script import Manager, Server
from flask_script import Manager, Server
from app import create_app

View File

@@ -22,7 +22,7 @@ from flask import (
from flask._compat import string_types
from flask.globals import _lookup_req_object, _request_ctx_stack
from flask_login import LoginManager
from flask_wtf import CsrfProtect
from flask_wtf import CSRFProtect
from flask_wtf.csrf import CSRFError
from functools import partial
@@ -58,7 +58,7 @@ from app.notify_client.letter_jobs_client import LetterJobsClient
from app.utils import gmt_timezones
login_manager = LoginManager()
csrf = CsrfProtect()
csrf = CSRFProtect()
service_api_client = ServiceAPIClient()
user_api_client = UserApiClient()