0 votes
1 view
in Python by (8.4k points)

I'm trying to import:

from django.db import models

PyCharm underlines django.db and complains: Unresolved reference 'django'.

How do I get PyCharm to recognize Django?

1 Answer

0 votes
by (16.8k points)

It is possibly the interpreter issue, your Pycharm is using the wrong Interpreter.

Go to Settings -> Project: -> Project Interpreter -> switch to the right path

In the interpreter packages, there should be Django package installed. If not, do it here/in terminal.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...