diff --git a/web_dev/sas_web/sas_web/urls.py b/web_dev/sas_web/sas_web/urls.py index f5a8e79..bd7bc0e 100644 --- a/web_dev/sas_web/sas_web/urls.py +++ b/web_dev/sas_web/sas_web/urls.py @@ -21,11 +21,11 @@ from django.conf import settings urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += [ - url(r'^$', include('startpage.urls', namespace='startpage', app_name='startpage')), url(r'^meingoethopia/', include('meingoethopia.urls', namespace='meingoethopia', app_name='meingoethopia')), url(r'^datenbank/', include('datenbank.urls', app_name='datenbank', namespace='datenbank')), url(r'^admin/', include(admin.site.urls)), + url(r'^', include('startpage.urls', namespace='startpage', app_name='startpage')) ] diff --git a/web_dev/sas_web/startpage/templates/startpage/impressum.html b/web_dev/sas_web/startpage/templates/startpage/impressum.html new file mode 100644 index 0000000..b54ed41 --- /dev/null +++ b/web_dev/sas_web/startpage/templates/startpage/impressum.html @@ -0,0 +1,6 @@ +{% extends "public/default.html" %} +{% block content %} + +

Impressum

+ +{% endblock %} diff --git a/web_dev/sas_web/startpage/urls.py b/web_dev/sas_web/startpage/urls.py index 9cb3403..5caca7a 100644 --- a/web_dev/sas_web/startpage/urls.py +++ b/web_dev/sas_web/startpage/urls.py @@ -3,5 +3,6 @@ from django.conf.urls import url from . import views urlpatterns = [ - url(r'^$', views.index, name='index') + url(r'^impressum', views.impressum, name='impressum'), + url(r'^', views.index, name='index') ] diff --git a/web_dev/sas_web/startpage/views.py b/web_dev/sas_web/startpage/views.py index ef6778f..ad40d7c 100644 --- a/web_dev/sas_web/startpage/views.py +++ b/web_dev/sas_web/startpage/views.py @@ -4,3 +4,7 @@ from django.shortcuts import render # Create your views here. def index(request): return render(request, 'startpage/index.html', {}) + + +def impressum(request): + return render(request, 'startpage/impressum.html') diff --git a/web_dev/sas_web/templates/public/footer.html b/web_dev/sas_web/templates/public/footer.html index d3c80e3..6503b7f 100644 --- a/web_dev/sas_web/templates/public/footer.html +++ b/web_dev/sas_web/templates/public/footer.html @@ -14,6 +14,6 @@


- +