fixed little typos in _djangosupport.py
authorChristopher Grebs <entequak@googlemail.com>
Fri, 28 Sep 2007 14:51:40 +0000 (16:51 +0200)
committerChristopher Grebs <entequak@googlemail.com>
Fri, 28 Sep 2007 14:51:40 +0000 (16:51 +0200)
--HG--
branch : trunk

jinja/contrib/_djangosupport.py

index ff381102057fa635aaff5b2ab20e2203239d8d06..2fead1445039a4ff4c2aa53e6c7cc1cc2066140a 100644 (file)
@@ -97,8 +97,8 @@ def render_to_response(template, context={}, request=None,
     """This function will take a few variables and spit out a full webpage."""\r
     content = render_to_string(template, context, request)\r
     if mimetype is None:\r
-        mimetype = settings.DEFUALT_CONTENT_TYPE\r
-    return HttpResponse(content, content_type)\r
+        mimetype = settings.DEFAULT_CONTENT_TYPE\r
+    return HttpResponse(content, mimetype)\r
 \r
 \r
 def render_to_string(template, context={}, request=None):\r