Skip to content

Instantly share code, notes, and snippets.

@aliceridgway
Created October 23, 2021 15:14
Show Gist options
  • Save aliceridgway/ea99ad89f68e666041f7d7ff5d80db1f to your computer and use it in GitHub Desktop.
Save aliceridgway/ea99ad89f68e666041f7d7ff5d80db1f to your computer and use it in GitHub Desktop.
Django Todo App - Base 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>To Do</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 bg-white border-bottom shadow-sm">
<nav class="my-2 my-md-0 mr-md-3">
<h2>To Do App</h2>
</nav>
</div>
{% block content %}
{% endblock %}
<script src="{% static 'js/jquery.min.js' %}"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
{% block javascript %}
{% endblock %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment