On 8/25/06, Nicolas Steinmetz <[EMAIL PROTECTED]> wrote: > > Waylan Limberg a écrit : > > > Did you close your shell and restart it so that the changes can be imported? > > No I did not. > > As my (python) shell was open, I only did : > > from mysite.polls.models import Poll, Choice
Once an object is imported, python will not import it again even if it has been edited/changed. Therefore, you have to close the shell, reopen it and only then can you import your changes. <aside> There is the reload() function, but that only works on modules and were importing classes here. See http://docs.python.org/lib/built-in-funcs.html and scroll down for more info. </aside> > > > I just checked the tutorial and you aren't expressly told that you > > have to do so, although it is implied. I suppose this is because a > > basic understanding of python is expected. > > Unless you have just modified it, it is indeed : > > "Let's jump back into the Python interactive shell by running python > manage.py shell again:" > Maybe that should be tuned a little. How about: "Let's restart the Python interactive shell by running python manage.py shell again:" -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---