#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 , 17 years ago
| milestone: | 1.0 |
|---|
by , 17 years ago
| Attachment: | static-files.diff added |
|---|
comment:2 by , 17 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 , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Patch to use
settings.MEDIA_ROOTas thedocument_rootfor serving static media.