My Django website won't load javascript files, but it does fine for the css part even tho both are in the same Static folder.
base.html:
<head>
{% load static %}
<meta charset="UTF-8">
<link href="{% static 'login/css/bootstrap.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'login/css/bootstrap.min.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'login/css/bootstrap-theme.css' %}" rel="stylesheet" type="text/css">
<link href="{% static 'login/css/bootstrap-theme.min.css' %}" rel="stylesheet" type="text/css">
<script src="{% static 'login/js/bootstrap.js' %}"></script>
<script src="{% static 'login/js/bootstrap.min.js' %}"></script>
<title>LOGIN</title>
</head>
settings.py:
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
]
and here is the path to static folder:
/home/nikola/Desktop/GIA/static
I've searched the google and solutions were pretty generic like something with the urls.py or python manage.py collectstatic (which is for deployment only), and none help. Im clueless.
What seems to be the problem?