Django DateTimeField 指定日期筛选(How can I filter a date of a DateTimeField in Django) models.py class AnchorBindAgent(models.Model): """ 主播绑定到代理,绑定规则 """ end_time_default = (timezon ... continue reading django zhuoyuebiji 2020/4/23 930
Why you should use the Django admin: 9 tips This writing is inspired by a comment on Reddit concerning my recent post: “The problem is that ever ... continue reading django zhuoyuebiji 2020/4/23 190
Django runserver log add client(request) ip source: https://code.djangoproject.com/ticket/16301 django source code location ( django 2.2 ): ..\L ... continue reading django zhuoyuebiji 2020/5/4 187
Django2.2 + mysql + pymysql: django.db.utils.InternalError: (1366, "Incorrect string value 解决方案 现象: 部分含 emoji 表情的字符无法存入 mysql 前提: 数据库已设置字符格式 utf8mb4 错误信息: 解决方案: django settings.py  ... continue reading django zhuoyuebiji 2020/5/7 204
How to Add a Text Filter to Django Admin(筛选条件自定义输入) When creating a new Django Admin page a common conversation between the developer and the support personal might sound l ... continue reading django zhuoyuebiji 2020/5/19 171
Django2 TypeError: RedirectView() received an invalid keyword 're_path'. as_view only accepts arguments that are already attributes of the class. django2 报错: TypeError: RedirectView() received an invalid keyword 're_path'. as_view only accepts arguments t ... continue reading django zhuoyuebiji 2020/5/20 499
'django.contrib.auth.middleware.AuthenticationMiddleware' must be in MIDDLEWARE in order to use the admin application. 错误环境 django 1.11 迁移到 django 2 错误日志 ERRORS: ?: (admin.E408) 'django.contrib.auth.middleware.AuthenticationMid ... continue reading django zhuoyuebiji 2020/5/20 423
Django AttributeError: 'Query' object has no attribute '_filtered_relations' Django 从 1.11 迁移到 Django 2 报错: AttributeError: 'Query' object has no attribute '_filtered_relations' ... continue reading django zhuoyuebiji 2020/5/20 255
Error fetching command 'build_solr_schema': The 'solr' backend requires the installation of 'pysolr'. Please refer to the documentation. Command 'build_solr_schema' skipped 错误提示: Error fetching command 'build_solr_schema': The 'solr' backend requires the installation of 'pysolr'. Please ... continue reading django zhuoyuebiji 2020/5/21 956
Django.db.utils.IntegrityError: UNIQUE constraint failed: blog_articlelike.article_id, blog_articlelike.ip 已存在的数据表添加 unique_together,报错: django.db.utils.IntegrityError: UNIQUE constraint failed: blog_articlelike.article ... continue reading django zhuoyuebiji 2020/5/21 697