On Monday 06 March 2017 12:11:04 Shawn Milochik wrote:
> You'll have to send something from the browser (submit a form, AXAX,
> or websockets) to a Django view and update something somewhere -- 
in
> Redis or your database, probably. Then have your infinite loop check
> that location for an updated value. I recommend Redis for this
> purpose.

+1. In fact, I would not use Django to set the "stop looping" flag, since 
there is no advantage to that, unless the stops need to be tied to content 
in the database. But to just alter a value in redis, I'd use Nginx Redis2 
module[1].
-- 
Melvyn Sopacua

--------
[1] https://github.com/openresty/redis2-nginx-module

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/10760291.RzzVUh8aVe%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to