Skip to main content

用于云片网的django app

Project description

django-yunpian-app

继承了云片的app. 里面有各种适应云片网的model

安装

pip install django-yunpian-app

基础引入

  1. 编辑<your_project>/settings.py
INSTALLED_APPS = [
    ...
    "django_yunpian"
    ...
]
  1. 创建数据库表
python manage.py migrate
  1. 根据自己的数据,创建账号,签名
from django_yunpian.models import Account, Sign, Template
account = Account.objects.create(
    ...
)
sign = Sign.objects.create(
    account=account,
    ...
)
template = Template.objects.create(
    sign=sign
    ...
)
  1. 发送短信
from django_yunpian.models import Message
Message.objects.create(
    template = template,
    ...
)

Project details


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.0.8.tar.gz (17.5 kB view hashes)

Uploaded source

Built Distribution

django_yunpian_app-1.0.8-py3-none-any.whl (20.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page