测试环境,可以用django自带的证书
- 安装模块
bash
sudo pip3 install django_sslserver
- 服务端https启动
bash
python3 manage.py runsslserver 127.0.0.1:8001
- https访问
bash
https://127.0.0.1:8001/quota/api/XXX