别人家的:
1.https://blog.dyboy.cn/program/144.html 宝塔面板成功部署Django项目流程
2.https://blog.csdn.net/qq_42571805/article/details/80862455 解决django项目部署到nginx+uwsgi服务器admin后台样式消失的问题
3.https://www.runoob.com/django/django-first-app.html Django 创建第一个项目
4.https://blog.csdn.net/qq_42774426/article/details/89714624 解决Linux运行django项目报错SQLite 3.8.3 or later is required (found 3.7.17)
5.https://blog.csdn.net/qq_39969226/article/details/92218635 Django部署阿里云服务时候报错:SQLite 3.8.3 or later is required (found 3.7.17)
自个家的:
1.宝塔安装python项目管理器
2.创建项目 /www/wwwroot/hellodjango
django-admin startproject hellodjango
pip uninstall django
pip install django==2.1.8
5.后台样式
seeting.py
STATIC_ROOT = os.path.join(BASE_DIR, “static”)
反向代理文件
location /static/
{
alias /www/wwwroot/hellodjango/static/;
}
6.进入虚拟机
source hellodjango_venv/bin/activate
运行python manage.py collectstatic
7.重启服务
发表回复