#8688 closed (fixed)
Small change on documentation for static media serving
Reported by: | Tiago Rodrigues | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | static media files | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'd like to suggest a small change to the documentation on http://docs.djangoproject.com/en/dev/howto/static-files/#limiting-use-to-debug-true which would be adding a variable like settings.MEDIA_DEVELOPMENT_ROOT instead of using an hardcoded path on the urls.py for development purposes. This is a much better way for different developers to work on the same project with only different settings.py files.
Attachments (1)
Change History (5)
comment:1 by , 16 years ago
milestone: | 1.0 |
---|
by , 16 years ago
Attachment: | static-files.diff added |
---|
comment:2 by , 16 years ago
Has patch: | set |
---|
No new setting needed; the above patch makes it so that settings.MEDIA_ROOT
is used as the document_root
for django.views.static.serve
.
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch to use
settings.MEDIA_ROOT
as thedocument_root
for serving static media.