1 2 3 4 5 6 7 8 | def render_to_template(template_path):
def outter(fn):
def inner(request, *args, **kwargs):
return render_to_response(template_path,
fn(request, *args, **kwargs),
context_instance=RequestContext(request))
return inner
return outter
|
More like this
- render_to by asolovyov 4 years, 11 months ago
- render_with decorator by tobias 4 years, 8 months ago
- render_to_response wrapper by Magus 6 years, 2 months ago
- PK->objects in view signature by AdamKG 5 years, 1 month ago
- integrated jinja2 which could use generic view ,my djangojinja2.py by jasongreen 3 years, 4 months ago
Comments