1# Template directory setting
2TEMPLATE_DIRS = (
3 os.path.join(os.path.dirname(__file__), 'templates'),
4)
5
1{% load static %}
2<!doctype html>
3<html lang="en">
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7 {% block page_meta %}
8 {% endblock %}
9
10 {# Vendor styles #}
11 {% block vendor_css %}
12 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/vendor.css' %}" />
13 {% endblock %}
14
15 {# Global styles #}
16 {% block site_css %}
17 <link rel="stylesheet" type="text/css" media="all" href="{% static 'css/application.css' %}" />
18 {% endblock %}
19
20 {# Page-specific styles #}
21 {% autoescape off %}
22 {% block page_css %}{% endblock %}
23 {% endautoescape %}
24
25 {% block extra_head %}
26 {# Extra header stuff (scripts, styles, metadata, etc) #}
27 {% endblock %}
28
29 <title>{% block page_title %}{% endblock %}</title>
30</head>
31<body class="{% block body_class %}{% endblock %}">
32{% block body %}
33 {# Page content will go here #}
34{% endblock %}
35
36{# Modal HTML #}
37{% block modals %}
38{% endblock %}
39
40{# Vendor javascript #}
41{% block vendor_js %}
42 <script src="{% static 'js/vendor.js' %}"></script>
43{% endblock %}
44
45{# Global javascript #}
46{% block site_js %}
47 <script src="{% static 'js/application.js' %}"></script>
48{% endblock %}
49
50{# Shared data for javascript #}
51<script type="text/javascript">
52 window._sharedData = {
53 {% autoescape off %}
54 {% block shared_data %}
55 'DEBUG': {% if debug %}true{% else %}false{% endif %},
56 {% endblock %}
57 {% endautoescape %}
58 }
59</script>
60
61{# Page javascript #}
62{% autoescape off %}
63 {% block page_js %}
64 {% endblock %}
65{% endautoescape %}
66</body>
67</html>