Delete View
Usage: @login_required def action_delete(request,object_id): return delete_view(request,object_id,ActionItem)
- view
 - delete
 
Usage: @login_required def action_delete(request,object_id): return delete_view(request,object_id,ActionItem)
Just add it in templatetags/delicious.py In your template: <h3>Del.icio.us</h3> <ul class="list"> {% load delicious %} {% load_delicious_links %} {% for link in delicious_links %} <li><a href="{{link.link}}">{{link.title|safe}}</a></li> {% endfor %} </ul>
Usage: (if you save it as pigmentation.py as I did) {% load pigmentation %} {% autoescape off %} {{ somevariable|pygmentize }} {% endautoescape %} There already a few of this code around, but this one is pretty clean, and includes css. It also works in both the development server and Dreamhost (python2.4 in my django config) without any unicode problems.
In order to context_processors work, you need to use the RequestContext instead of Context. This is a shortcut I use.