Just re import and redeclare the variable? from app import model x = thing.objects.all()
Den sön 31 mars 2019 16:46Betty <kbk2...@gmail.com> skrev: > Hi all, > > I am new to django and following tutorials. > > I realized that even if I modified models.py while I was using > shell(python manage.py shell) the modified models.py does not get > recognized unless I restart the shell prompt. > Is there any other way to load my modified models.py by not restarting the > shell prompt? > > I appreciate any help! > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/090df280-8443-4441-96bd-3e92cb26de72%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/090df280-8443-4441-96bd-3e92cb26de72%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPLZMbOeurjzsp28%2Bm7JXCJv%3D0qObbKgv2J_ROdALW4HEWhb_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.