#31290: Unable to runserver - python manage.py runserver
-----------------------------------------+------------------------
               Reporter:  batistalucash  |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  3.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 When I run server, I get the following error:

 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.6fabdc95bf4f9584540d1ff396cbdffc%40djangoproject.com.

Reply via email to