Solution of 04

This commit is contained in:
2018-11-23 12:21:19 +01:00
parent b9a1224b39
commit 1d65d9c9a3
6 changed files with 66 additions and 6 deletions
+2 -1
View File
@@ -15,9 +15,10 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import include, path
import posts
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.index, name='posts'),
path('posts/', include('posts.urls'), name='posts')
]
+5
View File
@@ -0,0 +1,5 @@
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'index.html')