Source

django-ajax-helper / ajax_helper / views.py

Full commit
1
2
3
4
5
6
7
8
from django.contrib.auth.decorators import login_required
from django.views.generic.simple import direct_to_template
from django.template import RequestContext
from django.http import HttpResponse

def get_csrf(request):
    return direct_to_template(request, 'ajax_helper/csrf_token', {})