Opened 7 years ago

Closed 7 years ago

#16725 closed Cleanup/optimization (worksforme)

Error in example code from per-view cache docs

Reported by: Bernhard Essl Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The second URL pattern is wrong.

(r'^foo/(\d{1,2})/$', cache_page(60 * 15)(my_view)),

Attachments (1)

16725.diff (447 bytes) - added by Bernhard Essl 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by Bernhard Essl

Attachment: 16725.diff added

comment:1 Changed 7 years ago by Julien Phalip

Resolution: worksforme
Status: newclosed

The doc looks good to me as-is (see: source:django/trunk/django/views/decorators/ and source:django/trunk/tests/regressiontests/decorators/

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