Skip to main content

This django application provides 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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-flashcookie-0.1.2.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file django-flashcookie-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django-flashcookie-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f47ddb7be5c89dfdaf9f10b894e96329749c1326fca163c2c50e97d6f8482106
MD5 e9f82b2a374447bef85bdf872f9e2533
BLAKE2b-256 4140595b6b5cedd0b5841b7f599e74d0b63edd01ad003c2b5ee76bfbb81e777c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page