Praktikum Version 4
This commit is contained in:
+1
-1
@@ -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
@@ -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")
|
||||
Reference in New Issue
Block a user