Re: Executing ssh scripts with django

2010-11-02 Thread Sævar Öfjörð
> Would you execute the save function through celery? Is it safe? or maybe if > save() is executed asynchronously it can cause some unexpected behavior? You could use signals to trigger execution of celery tasks, e.g. the post_save signal:

Re: Executing ssh scripts with django

2010-11-01 Thread Knut Ivar Nesheim
On Mon, Nov 1, 2010 at 3:17 PM, Marc Aymerich wrote: > I've never heard before about configuration management systems. Now I just > read something about it on wikipedia and seems to be useful when you have a > lot of similar servers. In my organization we have only one web

Re: Executing ssh scripts with django

2010-11-01 Thread Andrej
> I'm developing an ISP control panel for my organization. a bit off topic on Django and ISP. Look at the NOC Project http://www.nocproject.org/ > NOC is an Operation Support System (OSS) for the Telco, > Service provider and Enterprise Network Operation Centers (NOC). > Written in Python

Re: Executing ssh scripts with django

2010-11-01 Thread Marc Aymerich
Hi Knut, many thanks for your recommendations, I'll follow them!. All you've comment has a lot of sense :) I've never heard before about configuration management systems. Now I just read something about it on wikipedia and seems to be useful when you have a lot of similar servers. In my

Re: Executing ssh scripts with django

2010-11-01 Thread Knut Ivar Nesheim
Hi, I would strongly suggest looking into using Celery or some other form of message queue. In general you want to decouple the logic of the web app, such as validating domain names, writing to the database, with operations that has real-world important side effects. Once you split these, the

Executing ssh scripts with django

2010-10-31 Thread Marc Aymerich
Hi guys, I'm developing an ISP control panel for my organization. I just finished the web interface based on django admin and now it's time to introduce calls to the "system scripts" in order to make the changes effective on the ISP servers (add users, manage virtualhosts, domains, and all this