diff --git a/2.1.0/404.html b/2.1.0/404.html new file mode 100644 index 00000000..e48764dc --- /dev/null +++ b/2.1.0/404.html @@ -0,0 +1 @@ +
ServeStatic
with ASGI apps¶Tip
ServeStaticASGI
inherits its interface and features from the WSGI variant.
To enable ServeStatic
you need to wrap your existing ASGI application in a ServeStatic
instance and tell it where to find your static files. For example:
1 +2 +3 +4 +5 +6 +7 |
|
On initialization, ServeStatic
walks over all the files in the directories that have been added (descending into sub-directories) and builds a list of available static files. Any requests which match a static file get served by ServeStatic
, all others are passed through to the original WSGI application.
See the API reference documentation for detailed usage and features.