Django debug=False 时能找到静态文件的几种方式(静态文件找不到) runserver 模式(临时用) 启动命令:django-admin runserver --insecure --help: --insecure Allows serving static files even if DEBUG is False. … continue reading django joyo 2020/3/1 338
Nginx 不能访问 Django 静态文件的原因 前提 django 部署模式为 debug = False(debug = True 找不到静态文件基本是配置错误,去详细检查 settings.py 里的 STATIC_URL、STATICFILES_DIRS 配置) 现象 访问静态文件 网页状态码为:404 首先要用 … continue reading django joyo 2019/8/6 726
Centos7 + virtualenv + django + uwsgi + nginx 部署 Django 站点 安装环境 centos: 7.x python: 3.6.x django:1.11 virtualenv 和 virtualenvwrapper 安装 centos7 之 python3, git, nginx,… continue reading django joyo 2019/7/24 972
Nginx 同一 iP 多域名配置方法(多子配置文件,含 https) 一、Nginx 配置文件 路径:/usr/local/nginx/conf/nginx.conf 操作:在 http 模块增加(子配置文件的路径和名称):include vhost/*.conf; 另外需要注意一下 user 后面要改成 … continue reading nginx joyo 2019/5/30 966
Centos7 之 python3, git, nginx, redis 源码安装 * 本篇所有命令均在 root 权限下执行 * 安装 python3 安装依赖包: yum -y install gcc gcc-c++ python36-devel mysql-devel yum -y install openssl-devel bz… continue reading centos joyo 2019/1/9 1036
Nginx 同一 iP 多域名配置方法(单文件) 一个文件多个域名的写法: 在 nginx.conf 文件里面 http{} 内增加一个 server{} 即可: # nginx.conf #user nobody; worker_processes 1; #error_log logs/erro… continue reading nginx joyo 2017/9/22 1037