Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Dec. 9, 2010 00:44:06

c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

running app in backend


hey guys, im trying to run a script in the backend of my django
project, i have used django signals to call my script and run it when
foo class is saved, and in the foo class theres a variable that can be
true or false, if its true it calls an infinte loop that runs a
function every x seconds, but since this is an infinite loop, its
keeping the django HTTPRequest active, so the page never finishes
loading, is there a way to bipass this behavior ?

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 9, 2010 03:06:38

Rendy A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

running app in backend


I recommend you to check on celery if you need to run background process. It
has a good django support and can allows you to run periodic tasks.
On Dec 9, 2010 8:44 AM, "commonzenpython" <commonzenpyt...@gmail.com> wrote:
> hey guys, im trying to run a script in the backend of my django
> project, i have used django signals to call my script and run it when
> foo class is saved, and in the foo class theres a variable that can be
> true or false, if its true it calls an infinte loop that runs a
> function every x seconds, but since this is an infinite loop, its
> keeping the django HTTPRequest active, so the page never finishes
> loading, is there a way to bipass this behavior ?
>
> --
> You received this message because you are subscribed to the Google Groups
"Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
.
> For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.
>

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 11th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support