views:

51

answers:

1

I am using Django with Passenger on Dreamhost.

Every time I make a change to models, settings or views I need to pkill python from a terminal session. Does anyone know of a way to automate this? Is this something that Passenger can do?

Thanks.

+2  A: 

My advice would be to test locally using Django's builtin server.

It does precisely auto-reload, so that any change to your code will be available.

I'm not familiar with Dreamhost, but if modwsgi is on embedded mode this is not possible. In Daemon mode, you could write some code to detect file changes and restart the processes.

Rui Vieira
Great answer. Thanks! I skipped the builtin server exercise when I ran through the Django tutorials. I guess I should have checked it out. :)
Alex