On Thu, Feb 11, 2010 at 12:22 PM, Jeff Bauer wrote:
> Update: My work-around is this:
>
> 1) Wrap views functions:
> try:
> import django.views.decorators.csrf
> # Django 1.2 stuff
> except ImportError:
> # Django 1.1 stuff
>
> 2) If running Django 1.1, register a fake c
Update: My work-around is this:
1) Wrap views functions:
try:
import django.views.decorators.csrf
# Django 1.2 stuff
except ImportError:
# Django 1.1 stuff
2) If running Django 1.1, register a fake custom tag
'csrf_token' and load it in the templates so it's
2 matches
Mail list logo