yet another render_to_response decorator

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

  1. render_to by asolovyov 4 years, 11 months ago
  2. render_with decorator by tobias 4 years, 8 months ago
  3. render_to_response wrapper by Magus 6 years, 2 months ago
  4. PK->objects in view signature by AdamKG 5 years, 1 month ago
  5. integrated jinja2 which could use generic view ,my djangojinja2.py by jasongreen 3 years, 4 months ago

Comments

(Forgotten your password?)