Opened 17 years ago

Closed 16 years ago

#6832 closed (invalid)

Add description and usage note about decorators in URLconf to the url dispatcher docs

Reported by: Ramiro Morales Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

At least one of the three persons reporting in #5920 used the cache_page decorator in the URLconf but passed the view parameter as a string and not as a callable object itself.
The patch a) copies the usage case description from the 0.96 release notes to the main documentation and b) adds a note about that specific gotcha.

Attachments (1)

decor_view_parm_in_urlconf.diff (1.1 KB ) - added by Ramiro Morales 17 years ago.

Download all attachments as: .zip

Change History (3)

by Ramiro Morales, 17 years ago

comment:1 by Jeff Anderson, 17 years ago

Triage Stage: UnreviewedAccepted

comment:2 by James Bennett, 16 years ago

Resolution: invalid
Status: newclosed

I'm not sure we really should document this; the fact that decorators require a callable as an argument is pretty basic Python, and it's not really Django's job to serve as a Python tutorial.

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