Skip to content

Instantly share code, notes, and snippets.

@cicorias
Last active June 17, 2020 22:49
Show Gist options
  • Save cicorias/882f14403a5cf3326c6080fb4c2f755e to your computer and use it in GitHub Desktop.
Save cicorias/882f14403a5cf3326c6080fb4c2f755e to your computer and use it in GitHub Desktop.
Djange base.html

Download bootstrap and drop the CSS in ./example/static/css/bootstrap.css

Then the Javascript in ./example/static/js/bootstrap.bundle.js

{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>
{% block title %}
{% endblock %}
</title>
<link rel="stylesheet" href="{% static 'css/bootstrap.css' %}">
</head>
<body>
<div class="container">
{% block content %}
{% endblock %}
</div>
<script src="{% static 'js/bootstrap.bundle.js' %}"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment