Skip to main content

A Django app to use sms

Project description

Django SMS CN

基于Django的短信模块

Platforms

Quick start

安装django-sms-cn

$ pip install django-sms-cn

settings.py中修改INSTALLED_APPS

INSTALLED_APPS = [
    ...
    'sms'
]

settings.py底部加配置信息

SMS = {
    'default': '253',
    'appid': '',
    'secret': ''
}

修改urls.py

urlpatterns = [
    ...
    path('sms/', include('sms.urls'))
]

更新数据库

$ python manage.py migrate

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-sms-cn-0.1.1.tar.gz (8.3 kB view hashes)

Uploaded source

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