Django

Code

Ticket #6832 (closed: invalid)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: ramiro Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

decor_view_parm_in_urlconf.diff (1.1 kB) - added by ramiro on 03/19/08 09:33:56.

Change History

03/19/08 09:33:56 changed by ramiro

  • attachment decor_view_parm_in_urlconf.diff added.

06/11/08 20:49:18 changed by programmerq

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

07/05/08 22:57:38 changed by ubernostrum

  • status changed from new to closed.
  • resolution set to invalid.

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.


Add/Change #6832 (Add description and usage note about decorators in URLconf to the url dispatcher docs)




Change Properties
Action