{% load static %} <script src="{% static 'js/script.js' %}"></script> <link rel="stylesheet" href="{% static 'css/style.css' %}"> code example
Example 1: add static file in django
STATICFILES_DIRS = [
BASE_DIR / "static",
'/var/www/static/',
]
Example 2: static file link in django
STATIC_URL = '/static/'