Wow. I will try, and if it works as you say, its wonderful! :)
On Sep 20, 12:26 pm, Thorsten Sanders
wrote:
> import sys,os
>
> sys.path.append('/path/to/your/django_project')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'your_settings_file'
>
> This works fine for a cronjob I created
>
> On 20.09.2
On Sep 20, 12:07 am, Micke wrote:
> Thank you for your quick reply!
>
> My socket server is ready, but I dont know where to import it in
> django so it starts when django starts?
You are going to run your socket server in a different python process
than Django. Django is based on more of a CGI
import sys,os
sys.path.append('/path/to/your/django_project')
os.environ['DJANGO_SETTINGS_MODULE'] = 'your_settings_file'
This works fine for a cronjob I created
On 20.09.2011 10:48, Thomas Orozco wrote:
You just have to run your server as a daemon and use Django's
setup_environment so you c
You just have to run your server as a daemon and use Django's
setup_environment so you can use the ORM to interact with your Django DB.
I can try and find the lines you need to do that if you can't find them.
Le 20 sept. 2011 09:08, "Micke" a écrit :
--
You received this message because you are
Thank you for your quick reply!
My socket server is ready, but I dont know where to import it in
django so it starts when django starts?
br
Mikael
On Sep 19, 11:38 pm, Andy McKay
wrote:
> You could write a Python process that starts up a Socket Server and imports
> all the Django stuff, just li
You could write a Python process that starts up a Socket Server and imports
all the Django stuff, just like the current server does for HTTP. Then
there's no need to "send the data to django". Might help:
http://docs.python.org/library/socketserver.html
On Mon, Sep 19, 2011 at 2:00 PM, Micke wro
Hi,
Im new to Django and need some help in the right direction.
I will create a socket server, that should recive raw udp data and put
it in a database. After that Django should present the data in a
customized view.
Is it possible to create the server in Django, like in the views file,
so it sta
7 matches
Mail list logo