Skip to content
Snippets Groups Projects
Commit ea778fee authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Introduce base for html pages

Create base.html
Add common template folder to settings
parent 0a974ce4
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,9 @@ ROOT_URLCONF = 'AKPlanning.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [
os.path.join(BASE_DIR, 'templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......
{% load static %}
{% load bootstrap4 %}
{% load fontawesome %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AKPlanning</title>
{# Load Bootstrap CSS and JavaScript as well as font awesome #}
{% bootstrap_css %}
{% bootstrap_javascript jquery='slim' %}
{% fontawesome_stylesheet %}
</head>
<body>
<div class="container" style="margin-top:20px;margin-bottom: 30px;">
<ol class="breadcrumb">
{% block breadcrumbs %}
{% endblock %}
</ol>
</div>
<div class="container">
{% block content %}
{% endblock %}
</div>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment