An open API service indexing awesome lists of open source software.

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

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
```