# jinja2, django forms and bootstrap

**URL:** <https://forum.djangoproject.com/t/jinja2-django-forms-and-bootstrap/1716>\
**Category:** Using Django\
**Created:** [March 29, 2020, 4:52pm UTC](https://forum.djangoproject.com/t/jinja2-django-forms-and-bootstrap/1716 "2020-03-29T16:52:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pors](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/pors/32/678_2.png) [@pors](https://forum.djangoproject.com/u/pors)\
**Post date:** [March 29, 2020, 4:52pm UTC](https://forum.djangoproject.com/t/jinja2-django-forms-and-bootstrap/1716/1 "2020-03-29T16:52:24Z")

</div>

I am relatively new to Django and would like to adopt best practices as much a possible. Having used Flask quite a bit I’d like to use jinja2 though. Although jinja2 is easy to use with Django, to use it to render Django forms in a way it can be used with bootstrap is not.

What is the recommended way to solve this?

- Not using Django Forms
- Using Crispy forms (needs a lot of extra code to get it right)
- Not using jinja2?
- Different…?

---

<div class="post-metadata">

**Author:** ![adamchainz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adamchainz/32/26_2.png) [@adamchainz](https://forum.djangoproject.com/u/adamchainz)\
**Post date:** [March 29, 2020, 5:05pm UTC](https://forum.djangoproject.com/t/jinja2-django-forms-and-bootstrap/1716/2 "2020-03-29T17:05:48Z")

</div>

You’ll find it easier if you use Django templates rather than Jinja2. There are only a few differences between the two, you’re unlikely to notice the performance difference, and crispy forms will work with it.

---

<div class="post-metadata">

**Author:** ![timonweb](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/timonweb/32/570_2.png) [@timonweb](https://forum.djangoproject.com/u/timonweb)\
**Post date:** [March 30, 2020, 9:41am UTC](https://forum.djangoproject.com/t/jinja2-django-forms-and-bootstrap/1716/3 "2020-03-30T09:41:28Z")

</div>

I agree with Adam, just go with Django templates, this will make your life easier and you won’t have to jump through hoops when you use a contrib module that doesn’t have Jinja templates (99% don’t).

---

<div class="post-metadata">

**Author:** ![pors](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/pors/32/678_2.png) [@pors](https://forum.djangoproject.com/u/pors)\
**Post date:** [April 5, 2020, 4:04pm UTC](https://forum.djangoproject.com/t/jinja2-django-forms-and-bootstrap/1716/4 "2020-04-05T16:04:17Z")

</div>

Thanks guys, I’ll follow your advice 👌
