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 details)

Uploaded Source

File details

Details for the file django-sms-cn-0.1.1.tar.gz.

File metadata

  • Download URL: django-sms-cn-0.1.1.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.0

File hashes

Hashes for django-sms-cn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9520436f58284f21194898bb844deca421db20a389d633a4868f307ea76da6af
MD5 d6a605cfceb8234ec8b861dc2465e9f7
BLAKE2b-256 2bfb6e28998134cba5d88764b1bf9bb23afa230b274d7ff4c254da903d4b1c95

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page