add and route 3 pages news, a-z and programm
This commit is contained in:
15
gaehsnitz/templates/gaehsnitz/atoz.html
Normal file
15
gaehsnitz/templates/gaehsnitz/atoz.html
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
{% extends "gaehsnitz/base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h1>Adresse</h1>
|
||||||
|
<h1>Bar</h1>
|
||||||
|
<h1>Bühne</h1>
|
||||||
|
<h1>Essen</h1>
|
||||||
|
<h1>Mucke</h1>
|
||||||
|
<h1>Müll</h1>
|
||||||
|
<h1>Sanitär</h1>
|
||||||
|
|
||||||
|
<h1>... und vieles mehr</h1>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
@@ -15,11 +15,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="navi">
|
<div id="navi">
|
||||||
<a href="#">News</a>
|
<a href="{% url 'gaehsnitz:news' %}">News</a>
|
||||||
|
|
|
|
||||||
<a href="#">A-Z</a>
|
<a href="{% url 'gaehsnitz:atoz' %}">A-Z</a>
|
||||||
|
|
|
|
||||||
<a href="#">Bands</a>
|
<a href="{% url 'gaehsnitz:program' %}">Programm</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
{% extends "gaehsnitz/base.html" %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<h1>Bald, dooo!</h1>
|
|
||||||
|
|
||||||
<p>Das bisschen Website macht sich von allein, nimmt man an.</p>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
9
gaehsnitz/templates/gaehsnitz/news.html
Normal file
9
gaehsnitz/templates/gaehsnitz/news.html
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{% extends "gaehsnitz/base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h1>21.05. - neue Website</h1>
|
||||||
|
|
||||||
|
<p>Schürt's euch rein!</p>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
16
gaehsnitz/templates/gaehsnitz/program.html
Normal file
16
gaehsnitz/templates/gaehsnitz/program.html
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{% extends "gaehsnitz/base.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h1>Bands</h1>
|
||||||
|
<p>The Residudes - Stoner Blues aus Leipzig</p>
|
||||||
|
<p>Quast - Finn-Pop aus Köln</p>
|
||||||
|
<p>Melo-Komplott - Melodic Rock aus Altenburg</p>
|
||||||
|
<p>Direct Juice - 7-Ply-Hardcore aus Magdeburg</p>
|
||||||
|
<p>As The Lights Fade - Metalcore aus Berlin</p>
|
||||||
|
<p>...</p>
|
||||||
|
|
||||||
|
<h1>und sonst so ...</h1>
|
||||||
|
<p>Flunkyball, Open Jam Session, ...</p>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
|
||||||
from gaehsnitz.views import IndexView
|
from gaehsnitz.views import NewsView, AToZView, ProgramView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", IndexView.as_view(), name="index"),
|
path("", NewsView.as_view(), name="news"),
|
||||||
|
path("atoz", AToZView.as_view(), name="atoz"),
|
||||||
|
path("program", ProgramView.as_view(), name="program"),
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
|
||||||
|
|
||||||
class IndexView(TemplateView):
|
class NewsView(TemplateView):
|
||||||
template_name = "gaehsnitz/index.html"
|
template_name = "gaehsnitz/news.html"
|
||||||
|
|
||||||
|
|
||||||
|
class AToZView(TemplateView):
|
||||||
|
template_name = "gaehsnitz/atoz.html"
|
||||||
|
|
||||||
|
|
||||||
|
class ProgramView(TemplateView):
|
||||||
|
template_name = "gaehsnitz/program.html"
|
||||||
|
|||||||
Reference in New Issue
Block a user