[Fixed]-Django forms with custom bootstrap layout

1👍

You can render your {{ form }} by each field in html form, whith bootstrap classes like in this example:

<form action="" method="post">
    <div class="row">
        <div class ="col-md-6">{{ form.your_first_field }}</div> 
        <div class = "col-md-6">{{ form.your_second_field }}</div> 
    </div>
    <input type="submit" class="btn btn-primary"/>
</form>

Or you can try another layout, follow by this logic

Leave a comment