I am making simple blog application in Django.
Here is it's code.
I made a comment application in it, which works pretty well, but in my case the user would have to go to a different template *comment_form.html* (in my case) to submit the comment.
That's not good isn't it. So how would have an in-line form for a particular blog post(in detail.html).
-
What holds you back from putting it in one template? You can add as many context variables as you want.gitaarik– gitaarik2014-03-29 23:24:56 +00:00Commented Mar 29, 2014 at 23:24
-
You mean the add_comment view should render the detail template? I tried that but it was not working .Anurag-Sharma– Anurag-Sharma2014-03-30 01:40:42 +00:00Commented Mar 30, 2014 at 1:40
-
No, I mean to put it in ONE (1) template.gitaarik– gitaarik2014-03-31 08:28:21 +00:00Commented Mar 31, 2014 at 8:28
-
Could please provide me an example of it ?Anurag-Sharma– Anurag-Sharma2014-04-04 01:41:37 +00:00Commented Apr 4, 2014 at 1:41
Add a comment
|