Skip to content

Commit

Permalink
l10n_render: fix crash under 1.3 due to incomplete WSGIRequest enviro…
Browse files Browse the repository at this point in the history
…nment
  • Loading branch information
acdha committed Mar 16, 2011
1 parent eba2835 commit fdd3e02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions djangobench/benchmarks/l10n_render/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys

from django.core.handlers.wsgi import WSGIRequest
from django.shortcuts import render_to_response
Expand All @@ -17,7 +18,9 @@ def make_request():
'SERVER_NAME': 'testserver',
'SERVER_PORT': 80,
'SERVER_PROTOCOL': 'HTTP/1.1',
"wsgi.input": sys.stdin
}

return WSGIRequest(environ)


Expand Down

0 comments on commit fdd3e02

Please sign in to comment.