forked from expo/troggle
[svn]
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8245 by aaron @ 2/17/2009 1:09 AM
This commit is contained in:
8
alwaysUseRequestContext.py
Normal file
8
alwaysUseRequestContext.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user