- 博客(3)
- 收藏
- 关注
原创 django orm迁移
python manage.py makemigrations [app_name]python manage.py migrate [app_name] # 在数据库创建表或更改表结构framework_test_app/migrations/0001_initial.pypython manage.py sqlmigrate framework_test_app(app) 0001(迁移文件)python manage.py sqlmigrate framework_test_app 00
2020-07-14 18:33:33
128
原创 pm2 后台管理前端项目
nuxt 是一个前端框架,node是服务端,和python一样。npm是包管理工具,需要package.json这个文件,它可以执行package.json里面的scripts的命令,用npm run + 命令pm2 start npm -- startpm2 start npm --name test -- startnpm install pm2 -g # 命令行安装 pm2 pm2 start app.js -i 4 #后台运行pm2,启动4个app.js .
2020-07-14 17:55:48
277
原创 python pip下载源修改
源地址:豆瓣:http://pypi.douban.com/simple/中科大:https://pypi.mirrors.ustc.edu.cn/simple/清华:https://pypi.tuna.tsinghua.edu.cn/simple 一次性使用 可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple例如:pip install SomePackage -i https://pypi.tuna.tsinghua.ed.
2020-07-14 17:41:37
403
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人