2019-02-28 13:09:53 +00:00
|
|
|
from django.shortcuts import render
|
|
|
|
|
|
|
|
|
|
|
|
def home(request):
|
2019-03-01 19:55:41 +00:00
|
|
|
"""
|
|
|
|
This view creates the homepage of the web app.
|
|
|
|
"""
|
2019-02-28 13:09:53 +00:00
|
|
|
return render(request, "blog/home.html", {"title": "Homepage"})
|
|
|
|
|
|
|
|
|
|
|
|
def blog(request):
|
2019-03-01 19:55:41 +00:00
|
|
|
"""
|
|
|
|
This view creates a blog page. Not used right now.
|
|
|
|
"""
|
2019-02-28 13:09:53 +00:00
|
|
|
return render(request, "blog/blog.html")
|
|
|
|
|
|
|
|
|
|
|
|
def about(request):
|
2019-03-01 19:55:41 +00:00
|
|
|
"""
|
|
|
|
This view creates the abot/info page of the web app.
|
|
|
|
"""
|
2019-02-28 13:09:53 +00:00
|
|
|
return render(request, "blog/about.html", {"title": "About"})
|
|
|
|
|
|
|
|
|
|
|
|
def impressum(request):
|
2019-03-01 19:55:41 +00:00
|
|
|
"""
|
|
|
|
This view creates the impressum page of the web app.
|
|
|
|
"""
|
2019-02-28 13:09:53 +00:00
|
|
|
return render(request, "blog/impressum.html", {"title": "Impressum"})
|