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 need to pass actual view function
from posts.views import post_home
urlpatterns = [ ... url(r'^posts/$', post_home), ]
This works fine! You can have a read at URL Dispatcher Django and here Common Reguler Expressions Django URLs