PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause
  1. # -*- coding:utf-8 -*-
  2. from django.http import HttpResponse
  3. from django.utils.decorators import decorator_from_middleware
  4. from django.views.generic import View
  5. from django.middleware.doc import XViewMiddleware
  6. xview_dec = decorator_from_middleware(XViewMiddleware)
  7. def xview(request):
  8. return HttpResponse()
  9. class XViewClass(View):
  10. def get(request):
  11. return HttpResponse()