技术栈
node.js, vue.js, axios, python, django, orm, restful api, djangorestframework, mysql, nginx, jenkins...先发1个post请求,往数据库新增1条数据,
?
再发1个get请求,会看到返回了3条数据,2条预先插入的数据,1条post请求新增的数据,
?...{{ msg }}
同时在中使用axios添加ajax请求,请求http://127.0.0.1:8000/api/demo/hello/,将response.data...的端口是8000,vue的端口是8080,vue在请求django的时候,出现了跨域问题。...添加python环境变量,在首页左下角,
?
把路径D:\Python37添加为环境变量path并保存,
?
建好的这2个job就可以用来编译vue和启动django了,
?