static.py |
|
---|---|
A middleware for serving static files that is more selective than pump.middleware.file. |
|
Wrap the app so that if the request URL falls under any of the URLs in static_urls (the URL must start with one of the static_urls), it looks in public_dir for a file corresponding to the request URL. If no such file is not found, the request is handled normally. Note that the paths in static_urls should include the leading '/'. |
|
|