mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-01 14:51:04 -05:00
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:
2
app.py
2
app.py
@@ -1,5 +1,5 @@
|
||||
import os
|
||||
from flask.ext.script import Manager, Server
|
||||
from flask_script import Manager, Server
|
||||
from app import create_app
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user