修改django代码后
sudo service nginx reload
sudo restart gunicorn-xxxxx
执行这两条命令,否则网页内容不会更新
在django setting.py修改USE_TZ=False
否则使用的时区不是中国时区
项目部署到网站时,将setting.py DEBUG=False
修改django代码后
sudo service nginx reload
sudo restart gunicorn-xxxxx
执行这两条命令,否则网页内容不会更新
在django setting.py修改USE_TZ=False
否则使用的时区不是中国时区
项目部署到网站时,将setting.py DEBUG=False