Added root-level static CSS file

parent 7fcf5f9f
body {
font-family: "Segoe UI";
}
\ No newline at end of file
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<head> <head>
{% load static %} {% load static %}
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" href="{% static 'base.css' %}">
<link rel="stylesheet" href="{% block style %}{% endblock %}"> <link rel="stylesheet" href="{% block style %}{% endblock %}">
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
</head> </head>
......
...@@ -9,9 +9,10 @@ https://docs.djangoproject.com/en/3.2/topics/settings/ ...@@ -9,9 +9,10 @@ https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/ https://docs.djangoproject.com/en/3.2/ref/settings/
""" """
import os
from pathlib import Path from pathlib import Path
from dotenv import load_dotenv from dotenv import load_dotenv
import os
load_dotenv() load_dotenv()
...@@ -125,8 +126,8 @@ USE_TZ = True ...@@ -125,8 +126,8 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/ # https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = 'static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
# Default primary key field type # Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment