No, this solution not help for me.
I am still getting same error.

On Sun 16 May, 2021, 14:36 Chelsea Fan, <[email protected]>
wrote:

> try this
>
> On Sun, May 16, 2021 at 11:40 AM Suraj Kumar <
> [email protected]> wrote:
>
>> 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.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CACCwaoWP7z0%2BnmO-9M4v%2BKP37zP0hbg0BX2bXfqYCE16%3DkVChA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CACCwaoWP7z0%2BnmO-9M4v%2BKP37zP0hbg0BX2bXfqYCE16%3DkVChA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJwZndcQtaN-togwx2kg_Yjd4dWvzWpMMY_w%3DObK89s%2B_qmjnQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJwZndcQtaN-togwx2kg_Yjd4dWvzWpMMY_w%3DObK89s%2B_qmjnQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACCwaoU-kiDShkrcniAJuoM-gbtrzPUUsZyJnB0cCMLCpnEuOQ%40mail.gmail.com.

Reply via email to