Opened 12 years ago

Closed 12 years ago

#17784 closed Bug (invalid)

per-view cache broken in latest 1.4beta

Reported by: hemabe@… Owned by: nobody
Component: Uncategorized Version: dev
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

Description

I'm using cache_page in the URLconf. It worked in 1.4 alpha, but is broken in the latest 1.4 beta.

Details:
My urls.py looks like this:

url(r'^latest$', cache_page(60 * 15)('latest'), name='deugg_latest')

This worked in 1.4 alpha, but is now broken in the latest 1.4 svn trunk. I get this error:

TypeError at /deugg/latest
'str' object is not callable

Exception Location: /usr/local/lib/python2.7/dist-packages/django/utils/decorators.py in _wrapped_view, line 91

Any ideas?

Change History (1)

comment:1 by Matt McClanahan, 12 years ago

Resolution: invalid
Status: newclosed

I'm fairly certain this never worked. Decorators expect a callable argument (your view).

https://docs.djangoproject.com/en/1.3/topics/cache/#specifying-per-view-cache-in-the-urlconf

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