blob: 8b517062d6b5cb650782e75e19f3c29bc24a2a6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# coding: utf-8
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.http import HttpResponse
from django.utils import six
def execute_sql(request):
list(User.objects.all())
return HttpResponse()
def regular_view(request, title):
content = '<html><head><title>%s</title></head><body></body></html>' % title
return HttpResponse(content)
def resolving_view(request, arg1, arg2):
# see test_url_resolving in tests.py
return HttpResponse()
def set_session(request):
request.session['où'] = 'où'
if not six.PY3:
request.session['là'.encode('utf-8')] = 'là'.encode('utf-8')
return HttpResponse('<html><head></head><body></body></html>')
|