This django application provide rails-like flash messages to Django framework.
Project description
**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/
::
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/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.