Skip to content

Commit b301118

Browse files
committed
Update flask-restplus to flask-restx and path for werkzeug's ProxyFix
1 parent c280f5c commit b301118

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

sample_project/api_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from flask import Blueprint, current_app
2-
from flask_restplus import Api
2+
from flask_restx import Api
33

44
from sample_project.user import ns as ns_user
55
from sample_project.person import ns as ns_person

sample_project/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from flask import Flask
22

3-
from flask_restplus.apidoc import apidoc
3+
from flask_restx.apidoc import apidoc
44

55

66
ROOT_URL = '/sample_project'

sample_project/person/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask_restplus import Namespace
1+
from flask_restx import Namespace
22

33
ns = Namespace('Person', path='/')
44

sample_project/person/v1/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from flask import request
2-
from flask_restplus import Resource, fields
2+
from flask_restx import Resource, fields
33

44
from sample_project.person import ns
55

sample_project/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Flask==1.0.2
2-
flask-restplus==0.11.0
2+
flask-restx==0.2.0
33

44
gunicorn==19.8.1
55

sample_project/user/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask_restplus import Namespace
1+
from flask_restx import Namespace
22

33
ns = Namespace('User', path='/')
44

sample_project/user/v1/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flask_restplus import Resource, fields
1+
from flask_restx import Resource, fields
22
from flask import request
33

44
from sample_project.user import ns

wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from werkzeug.contrib.fixers import ProxyFix
3+
from werkzeug.middleware.proxy_fix import ProxyFix
44

55
from sample_project.app import create_app
66

0 commit comments

Comments
 (0)