On Sep 25, 5:36 pm, arnold4321 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm just getting started with Django.  I'm working through the
> tutorial on setting up my first app.  I ran into something that
> strikes me as odd.  I guess I must have had some mistake in my polls/
> views.py file, because I was getting an error at mysite.com/admin to
> that effect with debug mode turned on.
>
> The error said something about a module not having a vote attribute.
> I'm not sure what the cause of the error was, but putting that aside,
> I found that I couldn't get rid of the error at mysite.com/admin
> without loading mysite.com/polls/2 a few times.  That is, I had to
> load the page that made use of the detail.html template.  I'm just
> wondering why I would have to load that page in order to clear an
> error that I was seeing on a completely different page, mysite.com/
> admin.  Futhermore, why would I have to refresh the detail page two or
> three times?  I found that out purely by accident.
>
> I'm not really sure what I did to fix the problem -- or even what the
> problem was -- because whatever fix I performed didn't do any good
> until I loaded the polls detail page a few times.
>
> Any explanation for this behavior?
>
> Thanks,
> Ryan

When you make changes to Django code, you need to restart the server.
When you're running the built-in development server, it usually
detects any changes and restarts itself - but sometimes it can get
stuck and doesn't restart.

It was probably a coincidence that refreshing a certain page twice
sorted it out for you. To be safe, after you make code changes check
the console you're running the server in - you should see the 'Django
version x.. development server is running at...' header appear again.
If not, press Ctrl-C to quit the server and run ./manage.py runserver
again.

--
DR.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to