Trae生成 django5.2.1后台管理
【代码】Trae生成 django5.2.1后台管理。
·
安装django,采用的是5.2.1版本:
pip install django
Trae对话框中输入:
基于django框架,生成版本管理功能,版本管理模块命名为versions,工程项目命名为main
迁移数据库:
python manage.py makemigrations
python manage.py migrate
python manage.py makemigrations cieversions
python manage.py migrate
初始化admin账号和密码
python manage.py createsuperuser
启动开发服务器:
python manage.py runserver
更多推荐
所有评论(0)