homepage templates code example
Example 1: home template
{% extends 'base.html' %}
{% block title %}
<title>Homepage</title>
{% endblock %}
{% block body %}
<div class="jumbotron">
<div class="container">
<h1 class="display-3 font-weight-lighter">Homepage</h1>
<p class="lead">Lorem ipsum dolor sit amet.</p>
<button class="btn btn-outline-primary">Sign Up</button>
</div>
</div>
{% endblock %}
Example 2: webiste template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML basics</title>
</head>
<body>
</body>
</html>