手工创建 django 项目
配置 pip3
apt-get install python3-pip -y
# 修改pip为中国镜像
pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple
构建项目
pip3 install Django
django-admin startproject demo
cd demo
修改项目配置
vim demo/settings.py
# 修改为
ALLOWED_HOSTS = ['*']
启动服务
python3 manage.py runserver 0.0.0.0:8000
访问

Dockerfi...