2013-05-18 23:43:21 +08: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 12:36:09 +08:00
|
|
|
|
2013-05-18 23:43:21 +08:00
|
|
|
def xview(request):
|
|
|
|
return HttpResponse()
|
|
|
|
|
2013-11-03 12:36:09 +08:00
|
|
|
|
2013-05-18 23:43:21 +08:00
|
|
|
class XViewClass(View):
|
|
|
|
def get(self, request):
|
|
|
|
return HttpResponse()
|