14 lines
385 B
Python
14 lines
385 B
Python
|
#!/usr/bin/python
|
||
|
# -*- coding: utf-8 -*-
|
||
|
|
||
|
from django.shortcuts import render_to_response
|
||
|
from django.template import RequestContext
|
||
|
|
||
|
def render_response(req, *args, **kwargs):
|
||
|
"""
|
||
|
Wrapper function that automatically adds "context_instance" to render_to_response
|
||
|
"""
|
||
|
|
||
|
kwargs['context_instance'] = RequestContext(req)
|
||
|
return render_to_response(*args, **kwargs)
|