I am new to django and python. During url mapping to views i am getting following error: TypeError: view must be a callable or a list/tuple in the case of include().
you will need to import post_home:
from django.contrib import admin from django.urls import path,include from django.conf.urls import url from posts.views import post_home urlpatterns = [ path('admin/', admin.site.urls), path('posts/',post_home), ]