Praktikum Version 4

This commit is contained in:
Lennart Heimbs
2019-11-05 12:56:51 +01:00
parent 4cbf4fd861
commit 059f9e6d11
7 changed files with 55 additions and 5 deletions
+1 -1
View File
@@ -2,5 +2,5 @@ from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index',)
path('', views.index, name='index')
]
+2 -1
View File
@@ -3,4 +3,5 @@ from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Posts Index")
return render(request, 'posts/index.html')
#HttpResponse("Posts Index")