#937: Autoreload reloads for every request.
------------------------------------------------+---------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: reopened | Milestone:
Component: django-admin.py runserver | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------+---------------------------
Comment (by anonymous):
Replying to [ticket:937 [EMAIL PROTECTED]:
> I've just updated to the current trunk, and the autoreload code is
firing
> on every request I make to my developent server. The timestamps it's
> reading differ by one hour between reads, even though the file hasn't
> changed. I added this to autoreload.py at the point it decides
something
> has changed:
>
> print filename, time.ctime(mtime), time.ctime(mtimes[filename])
>
> and it's printing something like this:
>
> C:\...\utils\html.py Fri Oct 28 20:24:02 2005 Fri Oct 28 19:24:02
2005
>
> for every request.
>
> I'm running on Windows, which has a nasty habit of applying the current
> DST settings to stat() results, so you get a different timestamp for the
> same file depending on when you ask for it. Maybe something's happening
> during startup that's changing the DST setting? (I'm in the UK, where
> we're not in DST, but the file that is triggering autoreload was last
> modified in DST.)
Hello from Russia!
--
Ticket URL: <http://code.djangoproject.com/ticket/937#comment:13>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---