Skip to content

蚂蚁学Python

博学之、审问之、慎思之、明辨之、笃行之

  • 视频课程
  • 关于我

django

Categories django

Django的ModelForm一直不更新数据,服务重启才会更新数据的BUG

2024-09-13 Leave a comment by crazyant

问题 django的这个form,是从数据库获取数据的,但是数据库更新了之后,页面表单数据却没有更新,重启服务 … Read more Django的ModelForm一直不更新数据,服务重启才会更新数据的BUG


Categories django

Django的数据迁移怎么回滚回退?

2024-07-04 Leave a comment by crazyant

在 Django 中,migrate 命令用于应用数据库迁移,添加或修改数据库结构。如果你需要回退到先前的迁移 … Read more Django的数据迁移怎么回滚回退?


Categories django

宝塔Linux部署Django的静态文件新版本问题

2024-04-09 Leave a comment by crazyant

USGI的方法中可以直接把配置加上静态文件 添加python的项目 就可以了 打包的时候 注意下日志就行了 这 … Read more 宝塔Linux部署Django的静态文件新版本问题


Categories django

在Django中访问BASE_DIR的推荐方法

2023-07-16 Leave a comment by crazyant

1. 引入settings的模块 在代码文件的上方进行引入: from django.conf import … Read more 在Django中访问BASE_DIR的推荐方法


Categories django

Django修改表单密码字段时保留密码

2023-03-142023-03-14 Leave a comment by crazyant

1、问题 默认情况下,如果是密码字段,会自动清空输入内容 2、解决办法 在form的class中,增加属性 r … Read more Django修改表单密码字段时保留密码


Categories django

django-crispy-forms报错说bootstrap4/uni_form.html 模板不存在

2023-03-012023-03-01 Leave a comment by crazyant

报错截图 按照如下步骤解决: 1、补充一个安装包 pip install django-crispy-form … Read more django-crispy-forms报错说bootstrap4/uni_form.html 模板不存在


Categories django

宝塔Linux通过Gunicorn部署django

2023-03-022023-03-01 Leave a comment by crazyant

插件列表 新建网站 修改代码的两个配置 Debug = True的话,如果网站报错,会提供详细的报错信息;如果 … Read more 宝塔Linux通过Gunicorn部署django


Categories django

怎样通过Jquery给后端Django服务上传文件

2023-01-142023-01-10 Leave a comment by crazyant

1. form类 class TianqiUploadForm(forms.Form): tianqi_fil … Read more 怎样通过Jquery给后端Django服务上传文件


Post navigation
Older posts
1 2 Next →

文章分类

  • C++ (8)
  • chatgpt (3)
  • django (16)
  • docker (4)
  • fastapi (3)
  • flask (11)
  • hadoop (5)
  • hive (14)
  • java (20)
  • javascript (1)
  • kafka (1)
  • linux (18)
  • mac (4)
  • mysql (26)
  • numpy (2)
  • paddlepaddle (1)
  • pandas (42)
  • php (39)
  • pyecharts (1)
  • pyqt (6)
  • python (34)
  • python环境 (30)
  • python趣味小程序 (3)
  • redis (4)
  • sklearn (1)
  • spark (6)
  • tensorflow (3)
  • zookeeper (1)
  • 产品想法 (1)
  • 办公自动化 (10)
  • 大数据 (1)
  • 大模型 (3)
  • 推荐系统 (7)
  • 数据科学 (1)
  • 数据结构与算法 (1)
  • 机器学习 (4)
  • 爬虫 (24)
  • 电商 (2)
  • 程序人生 (26)
  • 程序员自媒体 (12)
  • 腾讯课堂 (1)
  • 自动化测试 (1)
  • 读书心得 (8)
  • 软件工具 (9)
  • 量化投资 (6)
© 2025 蚂蚁学Python • Theme Xena