This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import HttpResponse | |
from django.utils.functional import wraps | |
from django.template.context import RequestContext | |
from django.template.loader import get_template | |
from django.utils import simplejson as json | |
def dict_to_template_view(**template_args): | |
""" | |
Takes a function that returns a dict and decorates it into a template-rendering view | |
""" |
NewerOlder