Tambahkan file statis di django
STATICFILES_DIRS = [
BASE_DIR / "static",
'/var/www/static/',
]
Plain Pheasant
STATICFILES_DIRS = [
BASE_DIR / "static",
'/var/www/static/',
]
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
<head>
<link rel="stylesheet" href="{% static 'css/style.css' %}">
<title>Linguist</title>
</head>
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')