django的简单通知应用程序包
django-simple-notifications的Python项目详细描述
django的简单通知应用程序包
快速启动
安装django通知:
pip install django-simple-notifications
将其添加到已安装的应用程序中
INSTALLED_APPS=(...'simple_notifications.apps.DjNotificationsConfig',...)
添加django简单通知的url模式:
fromsimple_notificationsimporturlsassimple_notifications_urlsurlpatterns=[...url(r'^',include(simple_notifications_urls)),...]
将django简单通知添加到上下文处理器:
TEMPLATES=[{...'OPTIONS':{'context_processors':[..."simple_notifications.context_processors.check_user_show_notification"],},},]
添加到模板或基本HTML:
{%include"simple_notifications/alert.html"%}
功能
- 待办事项
运行测试
- 待办事项
历史记录
0.1.1(2018-06-19)
- 错误修复
0.1.0(2018-06-05)
- pypi上的第一个版本。