Re: how to use asyncore socket in django views.py

2011-12-27 Thread Joseph Slone
Depending on your needs, Celery could be over-kill. You could create a command that works under manage.py and use it in a cron job. On Tue, Dec 27, 2011 at 5:41 AM, Vovk Donets wrote: > To accepts socket connetction you need always listen some port. Othewise > you will be trying hit a bulls eye

Re: how to use asyncore socket in django views.py

2011-12-27 Thread Vovk Donets
To accepts socket connetction you need always listen some port. Othewise you will be trying hit a bulls eye when sending data to this port (if you would listen port only when view was called) View is a function it's not a webserver that runs and listen to port. You need to decouple working with soc

Re: how to use asyncore socket in django views.py

2011-12-27 Thread Kay
Hello~ I need to run the python django project and meanwhile accept the socket connection from somewhere to receive data. But I dont know is this can be done,so any tips if this is possible? thanks~ kay On 12月27日, 下午4時34分, Vovk Donets wrote: > For what you need this? > Maybe you should consi

Re: how to use asyncore socket in django views.py

2011-12-27 Thread Vovk Donets
For what you need this? Maybe you should consider using Celery for doing background jobs. 2011/12/23 Kay > if I have easy asyncore socket code as follow: > > > -- > > import socket > impor