Hi,
The simple way:
<div class="form-group col-lg-4 col-md-4 col-sm-4 col-xs-12">
{{ form }}
</div>
The more full way:
<div class="form-group col-lg-4 col-md-4 col-sm-4 col-xs-12">
<label class="sr-only" for="id_user_name">Name</label>
<input class="form-control" id="id_user_name" name="user_name" type=
"text" value="{{ form.user_name.value }}" aria-required="true"
placeholder="Your
Name">
{{ form.user_name.errors }}
<label class="sr-only" for="id_user_email">Email</label>
<input class="form-control" id="id_user_email" name="user_email" type=
"text" value="{{ form.user_email.value }}" aria-required="true"
placeholder="Your
Email">
{{ form.user_email.errors }}
</div>
Disqus is a good javascript-based comment system that Django also
recommends.
Collin
On Thursday, November 20, 2014 11:44:12 PM UTC-5, Code wrote:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/920bafe6-7ebe-42b0-a2c1-5cc8541bd090%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.