Thursday, November 20, 2014

Re: Django comments app - adding each field of comments app to div classes

Also, is there a better alternative to comments app? thanks

On Friday, 21 November 2014 09:10:40 UTC+5:30, Code wrote:
I am using django comments app and am using bootstrap template for UI. 

In bootstrap I have; 

    <div class="form-group col-lg-4 col-md-4 col-sm-4 col-xs-12">
     
<label class="sr-only" for="inputName">Name</label>
     
<input class="form-control" id="inputName" name="author" type="text" value="" aria-required="true" placeholder="Your Name">
   
</div>


and other div classes to fill in mame , email, url and comments.


Django comments app's 

    {% get_comment_form for post as form %}


allows manually render fields like;

    {{form.user_name}}
   
{{form.user_email}}
    etc
.


Question: How do I integrate `{{form.user_name}}` and other fields in the div class?

Thanks for your help.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0e8aa43e-7f18-4417-80de-6fd962d7ce21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment