ImportError: cannot import name 'include'

I think you may be mixed up with the solutions.

If you are using Django==1.11.0 then import should be as

from django.conf.urls import include


else if you are using Django==2.x, the import should be as,

from django.urls import include

UPDATE
Your code seems written in Django 2.x. So you have to update the django version and remove the line 16 from the code


I am using Django 3. Remember to activate the python environment where you run the python manage.py runserver . To do it you run /venv/bin$ source activate.

Tags:

Python

Django