Opened 17 years ago
Closed 14 years ago
#5742 closed (wontfix)
`static_pattern` shortcut for serving static files
Description ¶
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)
by , 17 years ago
Attachment: | static_patterns.patch added |
---|
by , 17 years ago
Attachment: | static_patterns.2.patch added |
---|
by , 17 years ago
Attachment: | static_patterns.3.patch added |
---|
Missed another reference to static_patterns
comment:1 by , 17 years ago
Relevant discussion going on here: http://simonwillison.net/2007/Oct/15/johntaber/#comments
comment:2 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:3 by , 17 years ago
Summary: | `static_patterns` shortcut for serving static files → `static_pattern` shortcut for serving static files |
---|
comment:4 by , 17 years ago
Owner: | changed from | to
---|
by , 17 years ago
Attachment: | static_patterns.diff added |
---|
Ability to test against any setting, not just DEBUG
comment:5 by , 17 years ago
Latest version makes it easy to test against any setting rather than just DEBUG
(I've seen an example using a LOCAL_DEVELOPMENT
setting)
comment:6 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Not going to take this. We might add a commented out pattern for using the static server to the default project.
Changing the doc title to reflect the fact it's static_pattern, not static_patterns