Javascript not being loaded in Django, but css and img do

Viewed 22

well, as the title suggests, I have a carousel I want in my index page, so I originally went for owl-carousel, but it wasn't working, so I decided to use the bootstrap carousel and I'm having exactly the same issue. It can't be that I didn't declare correctly the root, because I use a link (https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js), so I really don't know what the problem is, let me show you...

What it should look like

enter image description here

views.py:

from django.shortcuts import render
from django.views.generic.base import TemplateView

class HomePageView(TemplateView):
template_name = "core/index.html"

Owl-carousel:

The code:

enter image description here

The result:

enter image description here

Bootstrap carousel

Here the issue is that the buttons in the result are not working.

The code:

enter image description here

The result:

enter image description here

Any idea how I can solve this?

Thank you.

0 Answers
Related