Django

Code

Ticket #8688 (closed: fixed)

Opened 3 months ago

Last modified 2 months ago

Small change on documentation for static media serving

Reported by: trodrigues Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords: static media files
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

static-files.diff (0.6 kB) - added by arien on 09/06/08 06:15:35.
Patch to use settings.MEDIA_ROOT as the document_root for serving static media.

Change History

08/29/08 11:36:58 changed by jacob

  • needs_better_patch changed.
  • needs_docs changed.
  • needs_tests changed.
  • milestone deleted.

09/06/08 06:15:35 changed by arien

  • attachment static-files.diff added.

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

09/06/08 06:21:50 changed by arien

  • has_patch set to 1.

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.

10/06/08 03:29:08 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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

10/06/08 03:44:41 changed 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/Change #8688 (Small change on documentation for static media serving)




Change Properties
Action