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.

Files for django-sms-cn, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-sms-cn-0.1.1.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page