mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-13 09:27:11 +00:00
[svn r8245]
This commit is contained in:
8
troggle/alwaysUseRequestContext.py
Normal file
8
troggle/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