安装 django pip install django
创建虚拟环境 python -m venv testenvironment
进入虚拟环境: testenvironment\Scripts\activate.bat
虚拟环境安装 django pip install django
创建项目: python manage.py startproject projectname
项目中创建app: python manage.py startapp appname
启动server :python manage.py runserver
时间: 2024-11-09 14:21:43