Code

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8688 closed (fixed)

Small change on documentation for static media serving

Reported by: trodrigues Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: static media files
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 6 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 Changed 6 years ago by jacob

  • milestone 1.0 deleted
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Changed 6 years ago by arien

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

comment:2 Changed 6 years ago by arien

  • 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 Changed 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(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 Changed 6 years ago by mtredinnick

(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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.