ROOT_URLCONF = 'alpenzoo_django.urls'
TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.debug',
+ 'django.template.context_processors.request',
+ 'django.contrib.auth.context_processors.auth',
+ 'django.contrib.messages.context_processors.messages',
+ ],
+ },
+ },
{
'BACKEND': 'django_genshi_template.django_genshi_template.backends.genshi.Genshi',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'auto_reload': True,
- 'app_dirname': 'templates'
+ 'app_dirname': 'genshi'
},
},
]
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ lang="de">
+ <head>
+ <meta charset="utf-8"/>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <meta name="description" content="" />
+ <meta name="author" content="" />
+ <link rel="icon" href="${static('favicon.ico')}" />
+
+ <title>${animal.name_german}</title>
+
+ <!-- Bootstrap core CSS -->
+ <link href="${static('bootstrap/css/bootstrap.min.css')}" rel="stylesheet"/>
+
+ <!-- Custom styles for this template -->
+ <link href="${static('animals/animals.css')}" rel="stylesheet"/>
+
+ </head>
+
+ <body>
+
+ <div class="container">
+ <div class="header clearfix">
+ <nav>
+ <ul class="nav nav-pills pull-right">
+ <li role="presentation" class="active"><a href="#">Alpenzoo</a></li>
+ <li role="presentation"><a href="${url('animal_list')}">Tiere</a></li>
+ <li role="presentation"><a href="#">Spiele</a></li>
+ </ul>
+ </nav>
+ <h3 class="text-muted">Alpenzoo</h3>
+ </div>
+
+ <div class="jumbotron">
+ <h1>${animal.name_german}</h1>
+ <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
+ <p>
+ <a class="btn btn-lg btn-success" href="#" role="button">Vorlesen</a>
+ <a class="btn btn-lg btn-success" href="#" role="button">Tiergeräusch</a>
+ </p>
+ </div>
+
+ <div class="row marketing">
+ <div class="col-md-6">
+ <h4>${animal.name_german} Eckdaten</h4>
+ <ul>
+ <li>Größe: ${animal.size_cm} cm</li>
+ <li>Essbar: ${'Ja' if animal.edible else 'Nein :-('}</li>
+ </ul>
+
+ <h4>Beschreibung</h4>
+ <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
+
+ <h4>Geschichte des Geheges</h4>
+ <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
+ </div>
+
+ <div class="col-md-6">
+ <h4>Kochrezept</h4>
+ <p py:if="animal.edible">Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
+ <p py:if="not animal.edible">Leider ist ${animal.name_german} nicht essbar.</p>
+
+ <h4>Gefährlichkeit für mich</h4>
+ <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
+
+ <h4>Gefährdung durch mich</h4>
+ <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
+ </div>
+ </div>
+
+ <footer class="footer">
+ <p>© Sabine, Georg, Gregor, Philipp 2015</p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ lang="de">
+ <head>
+ <meta charset="utf-8"/>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <meta name="description" content="" />
+ <meta name="author" content="" />
+ <link rel="icon" href="${static('favicon.ico')}" />
+
+ <title>Tiere</title>
+
+ <!-- Bootstrap core CSS -->
+ <link href="${static('bootstrap/css/bootstrap.min.css')}" rel="stylesheet"/>
+
+ <!-- Custom styles for this template -->
+ <link href="${static('animals/animals.css')}" rel="stylesheet"/>
+
+ </head>
+
+ <body>
+
+ <div class="container">
+ <div class="header clearfix">
+ <nav>
+ <ul class="nav nav-pills pull-right">
+ <li role="presentation" class="active"><a href="#">Alpenzoo</a></li>
+ <li role="presentation"><a href="#">Tiere</a></li>
+ <li role="presentation"><a href="#">Spiele</a></li>
+ </ul>
+ </nav>
+ <h3 class="text-muted">Alpenzoo</h3>
+ </div>
+
+ <div class="jumbotron">
+ <h1>Unsere Tiere</h1>
+ <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
+ <p>
+ <a class="btn btn-lg btn-success" href="#" role="button">Rundgang beginnen</a>
+ <a class="btn btn-lg btn-success" href="#" role="button">Quiz</a>
+ </p>
+ </div>
+
+ <ul>
+ <li py:for="animal in animals"><a href="${url('animal_detail', animal.name_german)}">${animal.name_german}</a></li>
+ </ul>
+
+ <footer class="footer">
+ <p>© Sabine, Georg, Gregor, Philipp 2015</p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ </body>
+</html>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:py="http://genshi.edgewall.org/"
- xmlns:xi="http://www.w3.org/2001/XInclude"
- lang="de">
- <head>
- <meta charset="utf-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <meta name="description" content="" />
- <meta name="author" content="" />
- <link rel="icon" href="${static('favicon.ico')}" />
-
- <title>${animal.name_german}</title>
-
- <!-- Bootstrap core CSS -->
- <link href="${static('bootstrap/css/bootstrap.min.css')}" rel="stylesheet"/>
-
- <!-- Custom styles for this template -->
- <link href="${static('animals/animals.css')}" rel="stylesheet"/>
-
- </head>
-
- <body>
-
- <div class="container">
- <div class="header clearfix">
- <nav>
- <ul class="nav nav-pills pull-right">
- <li role="presentation" class="active"><a href="#">Alpenzoo</a></li>
- <li role="presentation"><a href="${url('animal_list')}">Tiere</a></li>
- <li role="presentation"><a href="#">Spiele</a></li>
- </ul>
- </nav>
- <h3 class="text-muted">Alpenzoo</h3>
- </div>
-
- <div class="jumbotron">
- <h1>${animal.name_german}</h1>
- <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
- <p>
- <a class="btn btn-lg btn-success" href="#" role="button">Vorlesen</a>
- <a class="btn btn-lg btn-success" href="#" role="button">Tiergeräusch</a>
- </p>
- </div>
-
- <div class="row marketing">
- <div class="col-md-6">
- <h4>${animal.name_german} Eckdaten</h4>
- <ul>
- <li>Größe: ${animal.size_cm} cm</li>
- <li>Essbar: ${'Ja' if animal.edible else 'Nein :-('}</li>
- </ul>
-
- <h4>Beschreibung</h4>
- <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
-
- <h4>Geschichte des Geheges</h4>
- <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
- </div>
-
- <div class="col-md-6">
- <h4>Kochrezept</h4>
- <p py:if="animal.edible">Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum.</p>
- <p py:if="not animal.edible">Leider ist ${animal.name_german} nicht essbar.</p>
-
- <h4>Gefährlichkeit für mich</h4>
- <p>Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum.</p>
-
- <h4>Gefährdung durch mich</h4>
- <p>Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
- </div>
- </div>
-
- <footer class="footer">
- <p>© Sabine, Georg, Gregor, Philipp 2015</p>
- </footer>
-
- </div> <!-- /container -->
-
- </body>
-</html>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml"
- xmlns:py="http://genshi.edgewall.org/"
- xmlns:xi="http://www.w3.org/2001/XInclude"
- lang="de">
- <head>
- <meta charset="utf-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
- <meta name="description" content="" />
- <meta name="author" content="" />
- <link rel="icon" href="${static('favicon.ico')}" />
-
- <title>Tiere</title>
-
- <!-- Bootstrap core CSS -->
- <link href="${static('bootstrap/css/bootstrap.min.css')}" rel="stylesheet"/>
-
- <!-- Custom styles for this template -->
- <link href="${static('animals/animals.css')}" rel="stylesheet"/>
-
- </head>
-
- <body>
-
- <div class="container">
- <div class="header clearfix">
- <nav>
- <ul class="nav nav-pills pull-right">
- <li role="presentation" class="active"><a href="#">Alpenzoo</a></li>
- <li role="presentation"><a href="#">Tiere</a></li>
- <li role="presentation"><a href="#">Spiele</a></li>
- </ul>
- </nav>
- <h3 class="text-muted">Alpenzoo</h3>
- </div>
-
- <div class="jumbotron">
- <h1>Unsere Tiere</h1>
- <p class="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
- <p>
- <a class="btn btn-lg btn-success" href="#" role="button">Rundgang beginnen</a>
- <a class="btn btn-lg btn-success" href="#" role="button">Quiz</a>
- </p>
- </div>
-
- <ul>
- <li py:for="animal in animals"><a href="${url('animal_detail', animal.name_german)}">${animal.name_german}</a></li>
- </ul>
-
- <footer class="footer">
- <p>© Sabine, Georg, Gregor, Philipp 2015</p>
- </footer>
-
- </div> <!-- /container -->
-
- </body>
-</html>