Way to Solve – django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.

What is issue?

As you could above , the exception which is coming , in the terminal , it is saying that django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.

This exception is coming because , in urls.py file , in urlpatterns –

urlpatterns = [
    path('admin/', include(admin.site.urls)),
    path('ab',views.CreateTeamView.as_view(template_name="ol.htm")),
]

You could see above , that include() is there in path( ),like –

  path('admin/', include(admin.site.urls)),

This is the cause of error which is coming , Now in newest version of Django , you don’t have need to write include (), in path .

You should write it like –

path('admin/', admin.site.urls),

Cool , Now your issue has resolved 😎.