I used to load models in Python shell in PyCharm with no error before, but now it through this error
Traceback (most recent call last):
File "<input>", line 12, in <module>
File "C:\...\lib\site-packages\django\db\models\base.py", line 112, in __new__
raise RuntimeError(
RuntimeError: Model class __main__.Source doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
I checked similar questions such as this and this and followed the proposed answers with no success. Funny thing is that python manage.py runserver
doesn't through any error and website load smoothly.
The only change to my environment is that update for windows I got yesterday.
I already have app name for all of my apps, set the DJANGO_SETTINGS_MODULE and all imports are absolute.