2015-01-28 12:35:27 +00:00
|
|
|
from django.contrib.admindocs.middleware import XViewMiddleware
|
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
|
|
|
|
|
|
|
|
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()
|
2018-04-08 17:35:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
class XViewCallableObject(View):
|
|
|
|
def __call__(self, request):
|
|
|
|
return HttpResponse()
|
2024-10-31 13:40:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
class CompanyView(View):
|
|
|
|
"""
|
|
|
|
This is a view for :model:`myapp.Company`
|
|
|
|
"""
|
|
|
|
|
|
|
|
def get(self, request):
|
|
|
|
return HttpResponse()
|