Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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)

static-files.diff (598 bytes ) - added by arien 16 years ago.
Patch to use settings.MEDIA_ROOT as the document_root for serving static media.

Download all attachments as: .zip

Change History (5)

comment:1 by Jacob, 16 years ago

milestone: 1.0

by arien, 16 years ago

Attachment: static-files.diff added

Patch to use settings.MEDIA_ROOT as the document_root for serving static media.

comment:2 by arien, 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 Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

(In [9165]) Fixed #8688 -- Added a note about using a settings variable for the static
media viewer with the development server. Based on a suggestion from trodrigues.

comment:4 by Malcolm Tredinnick, 16 years ago

(In [9171]) [1.0.X] Fixed #8688 -- Added a note about using a settings variable for the
static media viewer with the development server. Based on a suggestion from
trodrigues.

Backport of r9165 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top