2010-01-11 01:21:52 +08:00
|
|
|
# -*- coding:utf-8 -*-
|
|
|
|
from django.http import HttpResponse
|
|
|
|
from django.utils.decorators import decorator_from_middleware
|
2010-10-19 07:58:06 +08:00
|
|
|
from django.views.generic import View
|
2010-01-11 01:21:52 +08:00
|
|
|
from django.middleware.doc import XViewMiddleware
|
|
|
|
|
|
|
|
xview_dec = decorator_from_middleware(XViewMiddleware)
|
|
|
|
|
|
|
|
def xview(request):
|
|
|
|
return HttpResponse()
|
2010-10-19 07:58:06 +08:00
|
|
|
|
|
|
|
class XViewClass(View):
|
2011-04-27 00:56:17 +08:00
|
|
|
def get(self, request):
|
2010-10-19 07:58:06 +08:00
|
|
|
return HttpResponse()
|