django-flashcookie 0.1.5
This django application provides rails-like flash messages to Django framework.
Example:
views.py
def some_action(request):
...
request.flash['error'] = "You can't post comments in this section"
return HttpReponseRedirect("/")
base.html
{% if flash %}
{% for message in flash.error %}
{{ message }}
{% endfor %}
{% endif %}
Download:
hg clone http://bitbucket.org/offline/django-flashcookie/
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| django-flashcookie-0.1.5.tar.gz (md5) | Source | 2009-12-05 | 1KB | 523 | |
- Author: Anderson
- Home Page: http://bitbucket.org/offline/django-flashcookie/wiki/Home
- Keywords: django
- License: BSD
- Package Index Owner: offline
- DOAP record: django-flashcookie-0.1.5.xml
