用于云片网的django app
Project description
django-yunpian-app
继承了云片的app. 里面有各种适应云片网的model
安装
pip install django-yunpian-app
基础引入
- 编辑
<your_project>/settings.py
INSTALLED_APPS = [
...
"django_yunpian"
...
]
- 创建数据库表
python manage.py migrate
- 根据自己的数据,创建账号,签名
from django_yunpian.models import Account, Sign, Template
account = Account.objects.create(
...
)
sign = Sign.objects.create(
account=account,
...
)
template = Template.objects.create(
sign=sign
...
)
- 发送短信
from django_yunpian.models import Message
Message.objects.create(
template = template,
...
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django_yunpian_app-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23c93276490e1046ffa02fb5d6ac4b270eef51a2a6301fa9dc3e3e2754a7866d |
|
MD5 | e5d4a036109f26d2888956c46e6b4133 |
|
BLAKE2b-256 | d3a3e3a5af4effc0a750373a884f530d3131c1e7400ce9a1dae38fb338958e8c |