0

I have created a sample project using Django but when I opened the file in IDE it shows error for importing path and include from django.urls module.

The error statement is Cannot find reference 'include' in '__init__.py' and Cannot find reference 'path' in '__init__.py'

Anonymous
  • 335
  • 1
  • 2
  • 17

2 Answers2

1

If IDE is Pycharm, try to add source directory in File -> Settings -> Project -> Project structure.

Mikhail Polykovskii
  • 2,333
  • 1
  • 16
  • 13
1

you must use manage.py script to run your project in the right way

Erfan
  • 379
  • 1
  • 6