From 8446047ab246b186f0404a1f8acbf719a6355a78 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Fri, 3 Jul 2009 05:31:49 +0100 Subject: [svn] Brief code cleanup. --- alwaysUseRequestContext.py | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 alwaysUseRequestContext.py (limited to 'alwaysUseRequestContext.py') diff --git a/alwaysUseRequestContext.py b/alwaysUseRequestContext.py deleted file mode 100644 index b587b52..0000000 --- a/alwaysUseRequestContext.py +++ /dev/null @@ -1,8 +0,0 @@ -# this is the snippet from http://www.djangosnippets.org/snippets/3/ - -from django.shortcuts import render_to_response -from django.template import RequestContext - -def render_response(req, *args, **kwargs): - kwargs['context_instance'] = RequestContext(req) - return render_to_response(*args, **kwargs) \ No newline at end of file -- cgit v1.2.3