mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-24 00:04:13 +03:00
base template
This commit is contained in:
parent
988b4f8a46
commit
d862465712
|
@ -1,19 +1 @@
|
|||
Audrey Roy / @audreyr
|
||||
Daniel Greenfeld / @pydanny
|
||||
Juan Riaza
|
||||
Faris Chebib
|
||||
Garry Polley
|
||||
@desimone
|
||||
Chris Hasenpflug
|
||||
Si Feng
|
||||
@ducky427
|
||||
Benjamin Montgomery
|
||||
@mozillazg
|
||||
Patti Chen / @pattichen
|
||||
Bouke Haarsma / @bouke
|
||||
Remco Wendt / @shanx
|
||||
Kit La Touche / @wlonk
|
||||
Erik Romijn / @erikr
|
||||
Pratyush Mittal / @pratyushmittal
|
||||
Richard Barran / @richardbarran
|
||||
Kulbir Singh / @kulbir
|
||||
Daniel Greenfeld
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"project_name": "project_name",
|
||||
|
||||
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,33 +1,25 @@
|
|||
{% templatetag openblock %} load staticfiles {% templatetag closeblock %}
|
||||
<!DOCTYPE html>
|
||||
{% raw %}{% load staticfiles %}<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{% templatetag openblock %} block title {% templatetag closeblock %}{{ project_name }}{% templatetag openblock %} endblock title {% templatetag closeblock %}</title>
|
||||
<title>{% block title %}{{ project_name }}{% endblock title %}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Le styles -->
|
||||
<link href="{% templatetag openblock %} static 'css/bootstrap.min.css' {% templatetag closeblock %}" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
|
||||
}
|
||||
</style>
|
||||
<link href="{% templatetag openblock %} static 'css/bootstrap-responsive.min.css' {% templatetag closeblock %}" rel="stylesheet">
|
||||
|
||||
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<!-- This file store project specific CSS -->
|
||||
<link href="{% templatetag openblock %} static 'css/project.css' {% templatetag closeblock %}" rel="stylesheet">
|
||||
{% block css %}
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/css/bootstrap.min.css">
|
||||
|
||||
<!-- This file store project specific CSS -->
|
||||
<link href="{% static 'css/project.css' %}" rel="stylesheet">
|
||||
{% endblock %}
|
||||
|
||||
<!-- Use this to quickly test CSS changes in a template,
|
||||
then move to project.css -->
|
||||
{% templatetag openblock %} block extra_css {% templatetag closeblock %}{% templatetag openblock %} endblock extra_css {% templatetag closeblock %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -54,23 +46,25 @@
|
|||
|
||||
<div class="container">
|
||||
|
||||
<h1>{% templatetag openblock %} block page_title {% templatetag closeblock %}Example Base Template{% templatetag openblock %} endblock page_title {% templatetag closeblock %}</h1>
|
||||
<h1>{% block page_title %}Example Base Template{% endblock page_title %}</h1>
|
||||
|
||||
{% templatetag openblock %} block content {% templatetag closeblock %}
|
||||
{% block content %}
|
||||
<p>Use this document as a way to quick start any new project.</p>
|
||||
{% templatetag openblock %} endblock content {% templatetag closeblock %}
|
||||
{% endblock content %}
|
||||
|
||||
</div> <!-- /container -->
|
||||
|
||||
<!-- Le javascript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="http://code.jquery.com/jquery-latest.js"></script>
|
||||
<script src="{% templatetag openblock %} static 'js/bootstrap.min.js' {% templatetag closeblock %}"></script>
|
||||
{% block javascript %}
|
||||
<script src="http://code.jquery.com/jquery-latest.js"></script>
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0-wip/js/bootstrap.min.js"></scrip
|
||||
|
||||
<!-- place project specific Javascript in this file -->
|
||||
<script src="{% templatetag openblock %} static 'js/project.js' {% templatetag closeblock %}"></script>
|
||||
|
||||
{% templatetag openblock %} block extra_js {% templatetag closeblock %}{% templatetag openblock %} endblock extra_js {% templatetag closeblock %}
|
||||
<!-- place project specific Javascript in this file -->
|
||||
<script src="{% static 'js/project.js' %}"></script>
|
||||
{% endblock javascript %}
|
||||
</body>
|
||||
</html>
|
||||
{% endraw %}
|
Loading…
Reference in New Issue
Block a user