Django 评论框架
你好,我对 Django 很陌生,正在尝试掌握一些事情。
我想知道如果评论表单包含错误,与django捆绑的评论框架是否可以重定向到引用页面?
另外,如果我要制作一个评级框架,我将如何实现此功能。 我是否只需在评级表中传递引用网址即可?
感谢您的帮助,
马克
Hi I am quite new to Django and am trying to get to grips with a few things.
I would like to know if the comments framework that is bundled with django can redirect to the refering page if the comment form contains errors?
Also if I were to make a rating framework how would I go about achieving this functionality. Would I simply pass the refering url inside my rating form?
Thanks for any help
Mark
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
作为处理第一个问题的人,我可以说我找不到办法,至少不需要修改应用程序。 我走了另一条路,编写了一个更适合我的应用程序。 我发布了一个与此问题相关的问题,您可以阅读它 这里。
关于你的第二个问题,Django有一个评级应用程序,你可以在这里查看。
As someone who dealt with the first issue, I can say I could not find a way, at least without having to modify the app. I took the other path and wrote an app that suited me better. I posted a question on SO related to this issue, you can read it here.
Regarding your second question, there is a rating app for Django, you may check it here.