Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#15310 closed (fixed)

Wrong view path in documentation for serving static files

Reported by: Bradley Ayers <bradley.ayers@…> Owned by: nobody
Component: Documentation Version: 1.3-beta
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

http://docs.djangoproject.com/en/dev//howto/static-files/#django.views.static.serve

In the code sample, it has:

url(r'^media/(?P<path>.*)$', 'django.views.static', {

but it should be:

url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {

Attachments (1)

static-files.txt.patch (504 bytes) - added by Bradley Ayers <bradley.ayers@…> 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Bradley Ayers <bradley.ayers@…>

comment:1 Changed 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 5 years ago by gabrielhurley

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

In [15556]:

Fixed #15310 -- Corrected a view path in the static files how to docs. Thanks to Bradley Ayers for the report and patch.

comment:3 Changed 4 years ago by jacob

  • milestone 1.3 deleted

Milestone 1.3 deleted

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