Three things to check:
-
Your current directory in the shell is the base directory of your project.
-
Your virtual environment for your project is active.
-
Are you trying to perform any ORM or database operations at the module level in your models.py file?
Also, please post your INSTALLED_APPS setting.