2013-05-18 15:43:21 +00:00
|
|
|
from django.http import HttpResponse
|
|
|
|
from django.utils.decorators import decorator_from_middleware
|
|
|
|
from django.views.generic import View
|
|
|
|
from django.contrib.admindocs.middleware import XViewMiddleware
|
|
|
|
|
|
|
|
xview_dec = decorator_from_middleware(XViewMiddleware)
|
|
|
|
|
2013-11-03 04:36:09 +00:00
|
|
|
|
2013-05-18 15:43:21 +00:00
|
|
|
def xview(request):
|
|
|
|
return HttpResponse()
|
|
|
|
|
2013-11-03 04:36:09 +00:00
|
|
|
|
2013-05-18 15:43:21 +00:00
|
|
|
class XViewClass(View):
|
|
|
|
def get(self, request):
|
|
|
|
return HttpResponse()
|