用于云片网的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
django-yunpian-app-1.1.0.tar.gz
(17.9 kB
view details)
Built Distribution
File details
Details for the file django-yunpian-app-1.1.0.tar.gz
.
File metadata
- Download URL: django-yunpian-app-1.1.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e83a2a6156e6e4da68fd8bb89efc728ea1c1853a23095d3ae71700f17c604c8 |
|
MD5 | bbbdb4f82e4183661f8aa99b39a69aea |
|
BLAKE2b-256 | cda2199d96f31474a596508cc083aaa16c19c83823434f4d9240e01de2f4dd50 |
File details
Details for the file django_yunpian_app-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_yunpian_app-1.1.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22cdcd9af3ef9ad8322c20691b23de6ec2379d723e78ee6ab97875a67febd76e |
|
MD5 | 9f8bb6f4764d51fc8f7a26efe8e2285b |
|
BLAKE2b-256 | 0f4e2c93379322c7269cce5625a404b99ba5efe5442cc364b46555761f6c5341 |