Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

勘误:第9章P197 #39

Open
yuchen1996 opened this issue Jul 26, 2019 · 3 comments
Open

勘误:第9章P197 #39

yuchen1996 opened this issue Jul 26, 2019 · 3 comments

Comments

@yuchen1996
Copy link

9.3.5 代码倒数第3行,缺少

@the5fire
Copy link
Owner

缺少 ?

@yuchen1996
Copy link
Author

有点忘记了,不过当时应该是想建议变成这样:
{% autoescape off %}{{ comment.content }}{% endautoescape %}
因为当时已经使用了Markdown支持,评论内容会含有标签

@1273055646
Copy link

写成书中那样会报错,后面修改成了,把{{ comment.target}} 换成了{% url 'post-detail' comment.target %} 就可以正常运行了,之前是把target外键改为了CharField类型,URL识别不出来了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants