Solution of 04
This commit is contained in:
+2
-1
@@ -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')
|
||||
]
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
# Create your views here.
|
||||
|
||||
def index(request):
|
||||
return render(request, 'index.html')
|
||||
Reference in New Issue
Block a user