typeidea icon indicating copy to clipboard operation
typeidea copied to clipboard

Django企业开发实战对应项目代码

Results 38 typeidea issues
Sort by recently updated
recently updated
newest added

``` $(document).ready(function ($) { var $content_md = $('.form-row.field-content_md'); var $content_ck = $('.form-row.field-content_ck'); var $is_md = $('#id_is_md'); var switch_editor = function (is_md) { if (is_md) { $content_md.show(); $content_ck.hide(); } else {...

Bumps [mistune](https://github.com/lepture/mistune) from 0.8.3 to 2.0.3. Release notes Sourced from mistune's releases. Version 2.0.2 Fix escape_url via lepture/mistune#295 Version 2.0.1 Fix XSS for image link syntax. Version 2.0.0 First release...

dependencies

Bumps [pillow](https://github.com/python-pillow/Pillow) from 4.3.0 to 9.0.1. Release notes Sourced from pillow's releases. 9.0.1 https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html Changes In show_file, use os.remove to remove temporary images. CVE-2022-24303 #6010 [@​radarhere, @​hugovk] Restrict builtins within...

dependencies

需要实现带tag的文章列表,是把tag 的name冗余到Post中,比如 tags = JSONField(blank=True, default=[]) 有没有更好的方法?

Bumps [django-debug-toolbar](https://github.com/jazzband/django-debug-toolbar) from 1.9.1 to 1.11.1. Changelog Sourced from django-debug-toolbar's changelog. 1.11.1 (2021-04-14) Fixed SQL Injection vulnerability, CVE-2021-30459. The toolbar now calculates a signature on all fields for the SQL...

dependencies

我通过cmd命令python -m venv typeidea-env安装了虚拟环境,然后新建文件夹,新建Django并不会出现这几个文件,所以想问是不是我哪里错了,还是说这四个文件本来就是自己手动建立的。

第六章内联分类里的文章后面有一个删除的checkbox,点击后没有反应,怎么才能点击后让他删除呢?谢谢

书也买了,按照书里代码也敲了,就是各种模块不兼容 既然把源码放开了,为什么不把requirements好好整理一下呢 真是小气

按第9章完善完 PostDetailView后就报这个错`'PostDetailView' object has no attribute 'object'` 问题出在哪里,希望老师指点 `class PostDetailView(CommonViewMixin, DetailView): queryset = Post.latest_posts() template_name = 'blog/detail.html' context_object_name = 'post' pk_url_kwarg = 'post_id' def get(self, request, *args, **kwargs): response =...

from django.contrib import admin 
from .models import Comment
 @admin.register(Comment) 
class CommentAdmin(admin.ModelAdmin):
 list_display = ('traget','nickname','content','website','created_time') 按书上教程敲的代码。 到这里就报错了。。。 ERRORS: : (admin.E108) The value of 'list_display[0]' refers to 'traget', which is not a...