On 29 June 2010 20:10, Marian Bucur <[email protected]> wrote: > Thank you :) > > It's kinda annoying I have to restart Apache everytime I modify a > file... > C'est la vie...
Not sure by saying that you still think you have to restart Apache or not. If on UNIX you can use daemon mode and can avoid restarting the whole of Apache, you just touch the WSGI script file and it will ensure that just the daemon mode processes for that application restart automatically on next request. You can even install a code monitor so you don't even have to do that and will automatically restart when you change files. If on Windows there is no daemon mode, but you can still use the monitor with slight changes as described at end of that document and it will automatically restart the whole of Apache for you. In short, if on UNIX, use daemon mode, don't use embedded mode and most of the problem is solved. Graham > On Jun 28, 1:59 am, Graham Dumpleton <[email protected]> > wrote: >> On 28 June 2010 08:04, Marian Bucur <[email protected]> wrote: >> >> > Hello guy, >> >> > I have installed mod_wsgi and django to work with apache and I am >> > trying to learn the framework, but I have an issue: each time I edit >> > a .py file I need to restart the server for the changes to have >> > effect. I bet there is a way of seeing the changes right away without >> > restarting apache, but can`t figure it out. >> >> > Can you please help me with this? >> >> Read: >> >> http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode >> >> Graham > > -- > 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. > > -- 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.
