Ticket #12527: views.py

File views.py, 243 bytes (added by tweksteen, 15 years ago)
Line 
1from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound
2from django.shortcuts import render_to_response
3
4def test(request):
5 if request.is_ajax():
6 return HttpResponse("ajax")
7 return HttpResponse("not")
Back to Top