Commit d8f170dd authored by James Esguerra's avatar James Esguerra

Added static folder and static tags for CSS

parent 4ad44e49
<!-- base html template -->
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %} {% endblock %}</title>
{% block styles %} {% endblock %}
</head>
<body>
<header>
......
{% extends 'base.html' %}
{% load static %}
{% block title %} Your Bujo {% endblock %}
{% block styles %}
<link rel='stylesheet' type='text/css' href="{% static 'css/styles.css' %}">
{% endblock %}
{% block header %} Your Bullet Journal {% endblock %}
{% block content %}
......
{% extends 'base.html' %}
{% block title %} This Week {% endblock %}
{% block title %} Today {% endblock %}
{% block header %} This Week {% endblock %}
{% block header %} Today {% endblock %}
{% block content %}
......
......@@ -124,3 +124,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static')]
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