I was facing the same problem in Django Development server also, but I am able to come across the same using &#39;--noreload&#39; option, python manage.py runserver --noreload, and updation of my variable is working properly<br>
<p>&gt;&gt;I was facing the same problem in Django Development server also, but I am able to come across the same using &#39;<span style="font-style:italic">--noreload</span>&#39; option, <span style="font-style:italic">python manage.py runserver --noreload, </span>and updation of my variable is working properly<br>
</p><p>thats because it&#39;s one process serving one application to one person, in production, thats no feasible.<br></p><p>You do not resolve it. to be in that situation you must be doing some thing wrong. if you wanna store state, store in cache.</p>
<p>Thanks</p><br><div class="gmail_quote">On Wed, Feb 4, 2009 at 2:55 PM, Praveen Kumar <span dir="ltr">&lt;<a href="mailto:praveen.python.plone@gmail.com">praveen.python.plone@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<b>That is because your (and most) web servers cycles child processes</b><br><br><div class="gmail_quote"><div><div class="Wj3C7c">On Mon, Feb 2, 2009 at 4:57 PM, Hussain Bohra <span dir="ltr">&lt;<a href="mailto:hussainbohra_30@yahoo.com" target="_blank">hussainbohra_30@yahoo.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="Wj3C7c"><div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt">Hi All,<br>
<br>I am using Django and Lighttpd Webserver, for one of our tool.<br>
I
am initializing one variable as a global at the top of file and
updating the same on some particular function call. What I am observing
is it works fine for some time but after some time variable defined on
the top get reinitialized but happening with random pattern of time--
(can be confirmed from the log message), I guess complete module is
getting loaded again<br><br>I was facing the same problem in Django Development server also, but I am able to come across the same using &#39;<span style="font-style:italic">--noreload</span>&#39; option, <span style="font-style:italic">python manage.py runserver --noreload, </span>and updation of my variable is working properly<br>

<br>but i cant able to find any thing similar for runfcgi,
 <span style="font-style:italic">python manage.py runfcgi daemonize=true.<br><br></span>Any
one do let me know, what can be done to avoid reinitialize of a source
file (i.e. once get loaded in a memory, should not be updated until web
server restarts), I tried removing py file and start server with .pyc
files, then also same problem is coming.<br><br>Thankx in advance<br><div>&nbsp;</div><font size="3">Thanks and Regards,<br>Hussain Bohra</font><br></div><br>
      <hr size="1"> Add more friends to your messenger and enjoy! <a href="http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/" target="_blank"> Invite them now.</a></div><br></div></div>_______________________________________________<br>


BangPypers mailing list<br>
<a href="mailto:BangPypers@python.org" target="_blank">BangPypers@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
<br></blockquote></div><br>
</blockquote></div><br>