Skip to main content

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/

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.5.tar.gz (1.9 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-flashcookie-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b0fdb9476c26ea12b2b5e266b406e4c1885b99393395857d8a6d2f852c7277a4
MD5 0fe01add7da7a9fe44ef0e74b81aa654
BLAKE2b-256 4dd98d6ca8ff37c169da62102ac6081efd0e6b6ec1029427e294fc2026b195e4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page