add impressum
This commit is contained in:
@@ -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'))
|
||||
]
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{% extends "public/default.html" %}
|
||||
{% block content %}
|
||||
|
||||
<p>Impressum</p>
|
||||
|
||||
{% endblock %}
|
||||
@@ -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')
|
||||
]
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<center class="footer-center">C.M., N.H. © 2017 | <a class="link-to-contact" href="/meingoethopia/frage/stellen">Kontakt</a></center>
|
||||
<center class="footer-center">C.M., N.H. © 2017 | <a class="link-to-contact" href="{% url "meingoethopia:question_new" %}">Kontakt</a> | <a class="link-to-contact" href="{% url "startpage:impressum" %}">Impressum</a></center>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user