Even though I matched the version with Django, it was pointed out by vscode all the time, so I will write the cause and solution.
This is because the execution environment and VS Code virtual environment are different **.
For example, let's say you have a Python virtual environment called A, B.
Even if you install the library on A, if you use B and run it with VS Code, it will be pointed out.
Press the part where ** Python Version ** is written at the bottom left.
Since multiple environments will appear, the indication should disappear by adjusting to the environment you are running. Thank you for your hard work.
https://stackoverflow.com/questions/48270385/vs-code-error-when-importing-django-module
Recommended Posts