Django \ Python | 3.4 | 3.5 | 3.6 | 3.7 | 3.8 |
---|---|---|---|---|---|
1.11 | * | * | * | * | * |
2.0 | * | * | * | * | * |
To install django-sqs-mq:
$ pip install django-sqs-mq
Integrating django-sqs-mq support into your app is a three-step process:
- create your notice types
- create your notice templates
- send notifications
You need to call NoticeType
once to
create the notice types for your application in the database.
label
is the internal shortname that will be used for the typedisplay
is what the user sees as the name of the notification typedescription
is a short description
For example:
import json
from django_sqs.launcher import SqsLauncher
kwargs = {
}
kwargs.update({'logs_type': 'operate_logs'})
SqsLauncher().send_message(json.dumps(**kwargs, ensure_ascii=False))
Copyright (c) 2018-2020 MIT license.