I have this line of js that allows pop up login and register menu. It works on the first time i tried to load static however after a day or so, it is no longer working. My current method is to store css and js file in static file.
settings.py:
STATIC_URL = "static/"
STATICFILES_DIRS = [
BASE_DIR / "static",
]
Then load the static in base.html:
{% load static %}
<link rel="stylesheet" href="{% static 'style.css' %}">
<script src="{% static 'script.js' %}" type="text/javascript"></script>
Anyone know the tips on how to load js on django please help me.