Praktikum Version 4
This commit is contained in:
1 parent
4cbf4fd861
commit
059f9e6d11
7 files changed
+55
-5
No files matched your search
+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