Opened 17 years ago
Closed 17 years ago
#6832 closed (invalid)
Add description and usage note about decorators in URLconf to the url dispatcher docs
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.
Change History (3)
by , 17 years ago
Attachment: | decor_view_parm_in_urlconf.diff added |
---|
comment:1 by , 17 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 17 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.