Django: Redirect to current article after comment post

后端 未结 5 1223
粉色の甜心
粉色の甜心 2020-12-29 16:12

I am trying to use comments application in my project.

I tried to use code ({% render_comment_form for event %}), shown in the documentation here: Django comments

5条回答
  •  离开以前
    2020-12-29 16:34

    Update: Now have the option to redirect as part of the comment form: see http://docs.djangoproject.com/en/dev/ref/contrib/comments/#redirecting-after-the-comment-post

提交回复
热议问题