Skip to content

Commit 9aabddd

Browse files
author
Richard Ellison
authored
Update example.rst
Hi Maintainers! After copying the example from the read the docks page I got the below error: Error: While importing "app", an ImportError was raised: Traceback (most recent call last): File "C:\Users\44780\PycharmProjects\muck-around-flask-restx\venv\lib\site-packages\flask\cli.py", line 240, in locate_app __import__(module_name) File "C:\Users\44780\PycharmProjects\muck-around-flask-restx\app.py", line 4, in <module> from werkzeug.contrib.fixers import ProxyFix ModuleNotFoundError: No module named 'werkzeug.contrib' Looks like this has been solved in commit e186dc4 for the examples folder but not done in this example. This is my first pull request so feedback welcome. All the best Rich
1 parent c6b43ba commit 9aabddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/example.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Here is a full example of a `TodoMVC <http://todomvc.com/>`_ API.
77
88
from flask import Flask
99
from flask_restx import Api, Resource, fields
10-
from werkzeug.contrib.fixers import ProxyFix
10+
from werkzeug.middleware.proxy_fix import ProxyFix
1111
1212
app = Flask(__name__)
1313
app.wsgi_app = ProxyFix(app.wsgi_app)

0 commit comments

Comments
 (0)