Commit fde50e5a authored by James Esguerra's avatar James Esguerra

Added templates folder and base template

parent 0cb83cc1
<!-- base html template -->
<!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>
</head>
<body>
<header>
<div id='page-header'>
{% block header %} {% endblock %}
</div>
<div id='navbar'>
<div>
<a href='/home'> Home </a>
</div>
<div>
<a href='/profile'> Profile </a>
</div>
<div>
<a href='/profile'> Key </a>
</div>
<div>
<a href='/profile'> This Week </a>
</div>
<div>
<a href='/profile'> Today </a>
</div>
</div>
</header>
<div id='content'>
{% block content %} {% endblock %}
</div>
</body>
</html>
......@@ -10,6 +10,7 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
......@@ -55,7 +56,7 @@ ROOT_URLCONF = 'website.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......
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