raise TypeError('view must be a callable or a list/tuple in the case of
include().')
TypeError: view must be a callable or a list/tuple in the case of
include().
I have tried to add **include** to ''from django.urls import path'', but
it did not work. Please help.
More information below:
urls.py file
{{{
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin', admin.site.urls),
path('index', 'store.views.index', name='index'),
]
}}}
(book1) C:\Users\LucasBatistadosSanto\Desktop\Python\bookstore>py -m
django --version
3.0.3
(book1) C:\Users\LucasBatistadosSanto\Desktop\Python\bookstore>python -V
Python 3.7.3
--
Ticket URL: <https://code.djangoproject.com/ticket/31290>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
This isn't a support channel. See TicketClosingReasons/UseSupportChannels.
Passing a string as the view to `url()` was deprecated in Django 1.8
https://docs.djangoproject.com/en/3.0/releases/1.8/#passing-a-string-as-
view-to-url.
Review the django.urls docs:
https://docs.djangoproject.com/en/3.0/ref/urls/
--
Ticket URL: <https://code.djangoproject.com/ticket/31290#comment:1>