Sunday, May 16, 2021

Re: Issue in the models.py

https://youtu.be/lxBPDzdX-Uo I solve null data error no one focus on youtube properly

On Sun, May 16, 2021 at 3:22 PM Sharif Mehedi <sharifmehedi24@gmail.com> wrote:
The easiest way to go to python terminal with django settings configured is by running: python manage.py shell
On Sunday, May 16, 2021, 3:34:01 PM GMT+6, Suraj Kumar <surajsrivastava021194@gmail.com> wrote:


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


On Sun 16 May, 2021, 14:36 Chelsea Fan, <allaberdi16yazhanow@gmail.com> wrote:
try this

On Sun, May 16, 2021 at 11:40 AM Suraj Kumar <surajsrivastava021194@gmail.com> 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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACCwaoWP7z0%2BnmO-9M4v%2BKP37zP0hbg0BX2bXfqYCE16%3DkVChA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
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.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACCwaoU-kiDShkrcniAJuoM-gbtrzPUUsZyJnB0cCMLCpnEuOQ%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2140173205.1049884.1621158719602%40mail.yahoo.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAreeqiB9heP%3DdG77oT6_mLqMVSkzsFzRBzfH9op5vNV%2BsjLZw%40mail.gmail.com.

No comments:

Post a Comment