Argh, okay... =) Daemon mode it is... Thanks a lot for the help!
Ian On Sep 28, 6:38 pm, "Graham Dumpleton" <[EMAIL PROTECTED]> wrote: > 2008/9/29 ianmendiola <[EMAIL PROTECTED]>: > > > > > Ok, > > > So this has definitely isolated the problem. A lot of the work I am > > doing is done in separate python modules that have been imported into > > the main script file. In regards to the example of editing > > settings.py in django and having to restart apache for affects to take > > place, does this mean every time I make a change to outside modules I > > have to restart apache? Again, I am running on embedded mode. > > If using embedded mode, yes. > > This is why daemon mode has some benefits, especially when doing > development, as you can just touch the WSGI script file when you want > stuff to be reloaded, without having to restart the whole of Apache. > > Graham > > > Thanks, > > > Ian Mendiola > > > On Sep 28, 6:02 am, "Graham Dumpleton" <[EMAIL PROTECTED]> > > wrote: > >> 2008/9/28 ianmendiola <[EMAIL PROTECTED]>: > > >> > I'm running on embedded mode. > > >> Read: > > >> http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode > > >> Graham > > >> > On Sep 28, 4:57 am, William Dode <[EMAIL PROTECTED]> wrote: > >> >> On 28-09-2008, ianmendiola wrote: > > >> >> > Hello, > > >> >> > I've noticed that while developing a web application using mod_wsgi > >> >> > some of the changes I make don't appear on the first refresh. For > >> >> > instance if I had a page that displayed, "Hello World" and wanted to > >> >> > change it to "Hello Universe". I'd only see the change populate on say > >> >> > the 3rd or 5th page refresh. > > >> >> > Sometimes a weird phenomenon occurs where I refresh once, it shows my > >> >> > edit i.e. "Hello Universe", I refresh again and it shows "Hello > >> >> > World" ... Not sure if there is some sort of caching happening in the > >> >> > background - of course for a site on production you wouldn't be > >> >> > updating a page every 30 seconds ... but when developing it's likely > >> >> > the case. > > >> >> > The only thing that's worked successfully is restarting the apache > >> >> > server each time, that of course can be come very tiresome. > > >> >> > Has anyone else experienced this? Is there anyway to remedy this > >> >> > annoying behavior? > > >> >> Do you use daemon mode or embedded ? > > >> >> In daemon mode to reload all your application you just have to touch the > >> >> wsgi script. To reload only somes pages you have to manage it yourself > >> >> (only on development system !). > > >> >> -- > >> >> William Dodé -http://flibuste.net > >> >> Informaticien Indépendant --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en -~----------~----~----~----~------~----~------~--~---
