Skip to content

Commit

Permalink
Merge pull request #1736 from magula/1.0.x
Browse files Browse the repository at this point in the history
Update documentation of SharedDataMiddleware
  • Loading branch information
davidism committed Feb 20, 2020
2 parents 4555048 + e97a736 commit 8568bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ if they are not used right away, to keep it from being confusing::
from werkzeug.wrappers import Request, Response
from werkzeug.routing import Map, Rule
from werkzeug.exceptions import HTTPException, NotFound
from werkzeug.wsgi import SharedDataMiddleware
from werkzeug.middleware.shared_data import SharedDataMiddleware
from werkzeug.utils import redirect
from jinja2 import Environment, FileSystemLoader

Expand Down
2 changes: 1 addition & 1 deletion src/werkzeug/middleware/shared_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SharedDataMiddleware(object):
environments or simple server setups. Usage is quite simple::
import os
from werkzeug.wsgi import SharedDataMiddleware
from werkzeug.middleware.shared_data import SharedDataMiddleware
app = SharedDataMiddleware(app, {
'/static': os.path.join(os.path.dirname(__file__), 'static')
Expand Down

0 comments on commit 8568bed

Please sign in to comment.