render_to decorator instead of render_to_response

/*--- holy mAcar00ns!! --- */

I saw this on Stack Overflow. The render_to decorator seems handy.

offline / django-annoying / wiki / Home — bitbucket.org:

This is django application that try to eliminate annoying things in Django framework.

Features

render_to decorator - reduce typing in django views.
signals decorator - allow use signals as decorators.
ajax_request decorator - returns JsonResponse with dict as content.
autostrip decorator - strip form text fields before validation
get_object_or_None function - similar to get_object_or_404, but returns None if object not found.
get_config function - get settings from django.conf if exists, return default value otherwise.
AutoOneToOne field - creates related object on first call if it doesnt exists yet.
HttpResponseReload - reload and stay on same page from where request was made.
StaticServer middleware - instead of configuring urls.py, just add this middleware and it will serve your static files when you in debug mode

all your bases ar--

ping moi pleeez


About this entry

pacman is coming

nuck nuck

e belong to us!