安装Python3.6
yum install python36 |
安装依赖
安装虚拟环境
pip install virtualenvwrapper |
设置环境变量
mkdir /opt/envs |
创建虚拟目录
mkvirtualenv -p python3 adsl |
安装依赖包
backcall==0.1.0 |
引入Django-suit
https://github.com/darklow/django-suit
https://github.com/darklow/django-suit.git
表结构设计
# -*- coding: utf-8 -*- |
API接口配置
from rest_framework import serializers |
API地址
- http://adsl.laohulab.com:8090/
- http://adsl.laohulab.com:8090/adsl/index/
导入历史数据
# -*- coding: utf-8 -*- |
ADSL更新脚本
#!/usr/bin/env python |
配置文件
[ddns] |