Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
INSTALL>
pypm install django-flashcookie
How to install django-flashcookie
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install django-flashcookie
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) | | | |
---|
Windows (64-bit) | | | |
---|
Mac OS X (10.5+) | | | |
---|
Linux (32-bit) | | | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 0.1.5 on Jan 5th, 2011
Example:
views.py
System Message: WARNING/2 (<string>, line 7)
Literal block expected; none found.
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 %}