django.shortcuts.django_render - python examples

Here are the examples of the python api django.shortcuts.django_render taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : render.py
Copyright BSD 2-Clause "Simplified" License
Author : dabapps
def render(*args, **kwargs):
    """
    Wrapper around Django's `render` shortcut that is
    not allowed to run database queries
    """
    with queries_disabled():
        response = django_render(*args, **kwargs)
    return response