Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Autoreload reloading for every request [RSS Feed]

#1 Nov. 27, 2005 22:16:58

Richie H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Autoreload reloading for every request


Hi,

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)

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.)

--
Richie Hindle

Offline

#2 Nov. 27, 2005 22:48:28

Eugene L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Autoreload reloading for every request


I tried to reproduce what you reported and it does work like you said.
Probably something was broken some time ago. Please file a ticket.

Thanks,

Eugene

"Richie Hindle" <> wrote in message

>
> Hi,
>
> 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)
>
> 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.)
>
> --
> Richie Hindle
>
>
>
>

Offline

#3 Nov. 27, 2005 23:12:01

Richie H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Autoreload reloading for every request



> I tried to reproduce what you reported and it does work like you said.
> Probably something was broken some time ago. Please file a ticket.

Thanks for reproducing it. I've filed ticket #937.

--
Richie Hindle

Offline

  • Root
  • » Django
  • » Autoreload reloading for every request [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of January
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support