Python
django+uwsgi+nginx ajax get 504 Gateway Time-out解决方法
用django+uwsgi+nginx 后端执行一个函数时间过长,导致前端Failed to load resource: the server responded with a status of 504 (Gateway Time-out) 一开始以为是ajax超时,调整了一...
Django
Django的类视图ListView用法(含详细分页paginate功能)
开发环境: python 3.8.6 django 3.1.7 场景: 经常有从数据库中获取一批数据,然后在前端以列表的形式展现,比如:获取到所有的用户,然后在用户列表页面展示。 常规写法是,...