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)
Change History (3)
by , 17 years ago
Attachment: | decor_view_parm_in_urlconf.diff added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
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.