C
C
catdog2019-08-11 19:13:18
Django
catdog, 2019-08-11 19:13:18

Why the ImportError: cannot import name 'path' error in Django 2.0?

Hello
I'm just getting started with Django.
There is a task - to run a django application on a server where python 3.4 is installed.
Swears at path and include (depending on the order):

from django.urls import include, path                           
ImportError: cannot import name 'include'

piplist:
Package    Version                                                              
---------- -------                                                              
Django     2.0.13                                                               
gunicorn   19.9.0                                                               
pip        19.2.1                                                               
pytz       2019.2                                                               
setuptools 2.2

Please tell me what could be wrong. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-08-11
@dimonchik2013

classic shot in the foot in Python: one of the files/modules is named with the variable you are looking for

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question