django-flashcookie-0.1.5
توضیحات
This django application provides rails-like flash messages to Django framework.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-flashcookie-0.1.5 |
| نام | django-flashcookie |
| نسخه کتابخانه | 0.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anderson |
| ایمیل نویسنده | self.anderson@gmail.com |
| آدرس صفحه اصلی | http://bitbucket.org/offline/django-flashcookie/wiki/Home |
| آدرس اینترنتی | https://pypi.org/project/django-flashcookie/ |
| مجوز | BSD |
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/
نحوه نصب
نصب پکیج whl django-flashcookie-0.1.5:
pip install django-flashcookie-0.1.5.whl
نصب پکیج tar.gz django-flashcookie-0.1.5:
pip install django-flashcookie-0.1.5.tar.gz