Skip to content

Instantly share code, notes, and snippets.

@archatas
Created May 4, 2024 22:48
Show Gist options
  • Save archatas/e14c816e7af30a9912db021d1d30a1b0 to your computer and use it in GitHub Desktop.
Save archatas/e14c816e7af30a9912db021d1d30a1b0 to your computer and use it in GitHub Desktop.
Boilerplate base.html template inspired by django-allauth
{% load i18n %}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
{% block head_title %}
{% endblock head_title %}
</title>
{% block extra_head %}
{% endblock extra_head %}
</head>
<body>
{% block body %}
<h1>
{% block page_title %}
{% endblock page_title %}
</h1>
{% block content %}
{% endblock content %}
{% endblock body %}
{% block extra_body %}
{% endblock extra_body %}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment