# Bootstrap modal problem in Django project

**URL:** <https://forum.djangoproject.com/t/bootstrap-modal-problem-in-django-project/19908>\
**Category:** Templates & Frontend\
**Created:** [March 30, 2023, 8:02pm UTC](https://forum.djangoproject.com/t/bootstrap-modal-problem-in-django-project/19908 "2023-03-30T20:02:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sammcc99](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sammcc99/32/12944_2.png) [@sammcc99](https://forum.djangoproject.com/u/sammcc99)\
**Post date:** [March 30, 2023, 8:02pm UTC](https://forum.djangoproject.com/t/bootstrap-modal-problem-in-django-project/19908/1 "2023-03-30T20:02:10Z")

</div>

Im trying to use a bootstrap modal as part of my web application, but the pop up wont show when the button is pressed. I have copied all the code exactly as it is on the bootstrap site:

```auto
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalLong">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="exampleModalLong" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

```

Not sure if this a problem with how I have set up my project or my version of bootstrap…

Any help appreciated!

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 30, 2023, 8:23pm UTC](https://forum.djangoproject.com/t/bootstrap-modal-problem-in-django-project/19908/2 "2023-03-30T20:23:57Z")

</div>

First thing to check is to verify that your bootstrap css and js files are being loaded in the browser, and that the build of bootstrap that you are using has the modal modules included.

---

<div class="post-metadata">

**Author:** ![sammcc99](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sammcc99/32/12944_2.png) [@sammcc99](https://forum.djangoproject.com/u/sammcc99)\
**Post date:** [March 30, 2023, 9:18pm UTC](https://forum.djangoproject.com/t/bootstrap-modal-problem-in-django-project/19908/3 "2023-03-30T21:18:59Z")

</div>

I appreciate you getting back to me! By chance could guide me on how to make these checks please?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 30, 2023, 9:40pm UTC](https://forum.djangoproject.com/t/bootstrap-modal-problem-in-django-project/19908/4 "2023-03-30T21:40:51Z")

</div>

Use your browser’s developer tools to see what files have been loaded, and only you can determine what versions of those files are being used to identify whether you have everything you need.
