[Django] #31290: Unable to runserver - python manage.py runserver

5 views
Skip to first unread message

Django

unread,
Feb 19, 2020, 12:20:02 PM2/19/20
to django-...@googlegroups.com
#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.

Django

unread,
Feb 19, 2020, 12:38:32 PM2/19/20
to django-...@googlegroups.com
#31290: Unable to runserver - python manage.py runserver
-------------------------------+--------------------------------------
Reporter: batistalucash | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 3.0
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

* 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>

Reply all
Reply to author
Forward
0 new messages