Skip to content

Commit b363fae

Browse files
committed
Add base templates
1 parent 4a7f229 commit b363fae

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

templates/base.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
{% load static %}
5+
<link rel="stylesheet" href="{% static "admin/css/base.css" %}" />
6+
<title>{% block title %}My Amazing Site{% endblock %}</title>
7+
</head>
8+
9+
<body>
10+
<div id="sitebar">
11+
{% block sidebar %}
12+
<ul>
13+
<li><a href="/">Proejct_Home</a></li>
14+
<li><a href="/admin/">Admin</a></li>
15+
</ul>
16+
{% endblock %}
17+
<br />
18+
</div>
19+
20+
<div id="content">
21+
{% block content %}{% endblock %}
22+
</div>
23+
</body>
24+
</html>

templates/base_books.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% extends "base.html" %}
2+
3+
<title>{% block title %}Books Application Site{% endblock %}</title>
4+
5+
{% block sidebar %}
6+
{{ block.super }}
7+
<ul>
8+
<li><a href="/books/">Books_Home</a></li>
9+
</ul>
10+
{% endblock %}

0 commit comments

Comments
 (0)