On 13 Nov 2006, at 13:14, Ivan Sagalaev wrote:

Tom Smith wrote:

For example, I have made a change to my models.py file and I am  

logging all sql to a log file... But when I sit and watch it, the OLD  

sql is still getting executed...


Could it be that having caching turned on is causing this?


Does Django automatically reload python files when it spots a change  

has been made as it does in development mode? And where would I see  

that message (i.e in dev mode it's just shown in the command line)


To reboot django, should I reboot just Lighttpd or also should I run/ 

restart the django-fcgi.py files?


Under FastCGI all your code exists inside the FastCGI processes and 

lighttpd only passes request data to it and gets back results. So on all 

code changes you should manually restart FastCGI script only, there's no 

need to touch a web server.


So.. when doing a ps -ux I get...

tomsmith 22106  0.0  0.0  6836     8  ??  SN   Thu11AM   0:03.42 [python]
tomsmith 22107  0.0  0.0 14772     8  ??  SN   Thu11AM   0:06.32 [python]
tomsmith 22108  0.0  0.0 15352     8  ??  SN   Thu11AM   0:04.84 [python]
tomsmith 23858  0.0  0.0  6836     8  ??  SN   Thu11AM   0:07.04 [python]
tomsmith 23891  0.0  0.1  5352  2280  ??  SN   Thu11AM   0:29.77 /usr/local/sbin/lighttpd -f /home/tomsmith/domains/burningahole.co.uk/lighttpd/
tomsmith 35292  0.0  0.0  6836  1200  ??  SN    6:08PM   0:01.54 [python]
tomsmith 35293  0.0  0.4 39008 12552  ??  SN    6:08PM   9:25.17 [python]
tomsmith 35294  0.0  0.3 38716 10848  ??  SN    6:08PM   9:00.45 [python]

So... are the pythons django-fcgi.py instances? And I'm assuming that the lighttpd is a webserver

To make sure that django is using the latest code do I kill, for example, 22106, 22107 etc. Or should the code be using the latest version anyway (like the development code does)

Is it OK to kill the pythons above... how would I know if one of them was doing anything (given I can't do a "top" on Textdrive)... and do I have to run django-fcgi.py again afterwards or does lighttpd boot it up automatically?


Thanks

tom


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to