`static_pattern` shortcut for serving static files
|Reported by:||SmileyChris||Owned by:||SmileyChris|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
It seems like it could be useful to provide a reliable shortcut for adding static files to the urlpatterns of your URLconf.
The attached patch makes it even easier to serve static files from the most common use-case of MEDIA_ROOT and MEDIA_URL.
Change History (10)
comment:1 Changed 9 years ago by Simon Willison
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 8 years ago by Simon G <dev@…>
- Triage Stage changed from Unreviewed to Design decision needed
comment:3 Changed 8 years ago by anonymous
- Summary changed from `static_patterns` shortcut for serving static files to `static_pattern` shortcut for serving static files