Django is not importing models: Sublime text can't find django. Windows 11

I've been working through Python Crash Course e2, and got stuck on Ch.18.

Having opened models.py, and entered the code, the error message is:

ModuleNotFoundError: No module named 'django'

I have spent some time working on this, without a solution.

Could it be that PCCe2 is out of date, or is there a workaround solution?

ChatGPT has said to make sure to activate the virtual environment, make sure Django is installed; verify the installation; check my Python environment and ensure it is activated; check for multiple Python installations; check the installation path; verify the installation path; check that "models.py" is in the app directory, and the app is listed in the installed apps, etc.

I have tried all of these, and the text editor cannot seem to find the module django. But it is among the files.

Вернуться на верх