PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/special_headers/views.py

https://code.google.com/p/mango-py/
Python | 14 lines | 10 code | 3 blank | 1 comment | 0 complexity | 91022c950cf5a004f337513ca9e580d7 MD5 | raw file
 1# -*- coding:utf-8 -*-
 2from django.http import HttpResponse
 3from django.utils.decorators import decorator_from_middleware
 4from django.views.generic import View
 5from django.middleware.doc import XViewMiddleware
 6
 7xview_dec = decorator_from_middleware(XViewMiddleware)
 8
 9def xview(request):
10    return HttpResponse()
11
12class XViewClass(View):
13    def get(request):
14        return HttpResponse()