摘要:
Linux 网络命名空间: NetWork NameSpace: >> sudo docker run -d --name test1 busybox /bin/sh -c "while true;do sleep 3600;done" >> sudo docker run -d --name te 阅读全文
摘要:
Dockerfile实战: >> mkdir flask-hello-world >> cd flask-hello-world >> vi DOckerfile ~FROM python:2.7 ~LABEL maintainer="995945908@qq.com" ~COPY app.py / 阅读全文
摘要:
配置centos7,ubuntu源: https://www.cnblogs.com/renpingsheng/p/7845096.html centos7 https://github.com/apanly/mooc/tree/master/vagrant ubuntuDocker的架构和底层技术 阅读全文
摘要:
django-rest-framework(基于类的视图)1. 2.配置url 3.Using mixins 4.使用通用的基于类的视图 阅读全文
摘要:
1.Wrapping API views 1.1 @api_view 用于处理基于函数的视图. 1.2 APIView 用于处理基于类的视图.2.简化上一章中的views.py,这里我们不在使用JSONParser 3.更新urls 阅读全文
摘要:
1.linux下安装mysql,需要配置文件vi /etc/mysql/mysql.conf.d/mysqld.cnf: 将bind-address 127.0.0.1 改为 0.0.0.0 然后重启:sudo service mysql restart 查看是否重启:ps aux|grep mys 阅读全文
摘要:
1.安装: pip install django pip install djangorestframework pip install pygments # 此模块用来使得代码可以突出显示 2。创建一个新的环境: virtualenv env source env/bin/activate 3.创 阅读全文