mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +00:00
1858e47672
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
22 lines
597 B
Python
22 lines
597 B
Python
from django.core.xheaders import populate_xheaders
|
|
from django.http import HttpResponse
|
|
from django.utils.decorators import decorator_from_middleware
|
|
from django.views.generic import View
|
|
from django.middleware.doc import XViewMiddleware
|
|
|
|
from .models import Article
|
|
|
|
xview_dec = decorator_from_middleware(XViewMiddleware)
|
|
|
|
def xview(request):
|
|
return HttpResponse()
|
|
|
|
def xview_xheaders(request, object_id):
|
|
response = HttpResponse()
|
|
populate_xheaders(request, response, Article, 1)
|
|
return response
|
|
|
|
class XViewClass(View):
|
|
def get(self, request):
|
|
return HttpResponse()
|