Hi everyone,
I having some issue in models.py
While doing in the python shell in the pycharm terminal.
So I write the code in the models.py
Screenshot: Screenshot (312)-1.png
Then I run makemigration command and migrate command .
Then write code in python shell
from firstapp.models import Topic then I got issue as "django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings."
Please refer to the screenshot
Screenshot: Screenshot (311)-1.png
And here is the setting.py file
Can anyone help me with this?
I don't where did I mistake.
So please help me out this issue.