https://github.com/chanmo/django-sms-cn
Django SMS APP
https://github.com/chanmo/django-sms-cn
aliyun django sms
Last synced: 3 months ago
JSON representation
Django SMS APP
- Host: GitHub
- URL: https://github.com/chanmo/django-sms-cn
- Owner: ChanMo
- License: mit
- Created: 2019-08-03T06:19:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T06:36:25.000Z (over 6 years ago)
- Last Synced: 2024-10-11T15:47:04.309Z (over 1 year ago)
- Topics: aliyun, django, sms
- Language: Python
- Size: 27.3 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django SMS CN
基于Django的短信模块
## Platforms
- [x] [253](https://zz.253.com/v5.html#/api_doc)
- [x] [阿里云](https://help.aliyun.com/product/44282.html)
## Quick start
安装`django-sms-cn`
```
$ pip install aliyun-python-sdk-core # 如果需要使用aliyun
$ pip install django-sms-cn
```
在`settings.py`中修改INSTALLED_APPS
```python
INSTALLED_APPS = [
...
'sms'
]
```
在`settings.py`底部加配置信息
```python
SMS = {
'default': '253',
'appid': '',
'secret': ''
}
```
修改`urls.py`
```python
urlpatterns = [
...
path('sms/', include('sms.urls'))
]
```
更新数据库
```bash
$ python manage.py migrate
```