add and route 3 pages news, a-z and programm

This commit is contained in:
2022-05-21 00:19:19 +02:00
parent 3b38c9fdec
commit 789e9beb81
7 changed files with 57 additions and 16 deletions

View 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 %}

View File

@@ -15,11 +15,11 @@
</div>
<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 id="content">

View File

@@ -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 %}

View 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 %}

View 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 %}

View File

@@ -1,7 +1,9 @@
from django.urls import path
from gaehsnitz.views import IndexView
from gaehsnitz.views import NewsView, AToZView, ProgramView
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"),
]

View File

@@ -1,5 +1,13 @@
from django.views.generic import TemplateView
class IndexView(TemplateView):
template_name = "gaehsnitz/index.html"
class NewsView(TemplateView):
template_name = "gaehsnitz/news.html"
class AToZView(TemplateView):
template_name = "gaehsnitz/atoz.html"
class ProgramView(TemplateView):
template_name = "gaehsnitz/program.html"