Instead you can try using celery. For demonstration purpose I have tried an image processing app using rabbitmq, celery with flask. It worked great. It can be found at my blog ( http://www.sadafnoor.com/blog/rabbitmq-celery-demonstration-using-image-processing-app-on-flask/ ). On 16-Sep-2015 6:53 PM, "Erol Merdanović" <[email protected]> wrote:
> Hi all > > I'm using Django to develop a service. Service connects to RabbitMQ and > receives events that are translated to creating/updating/deleting of the > database records. > > What is the best way to run RabbitMQ consumer with Django? I'm using Pika > library and I run consumer as a management command (python manage.py > listen_to_changes). Is this a good solution? I don't see it so. I'm running > Django as WSGI so I presume there are no start/stop Django events that I > could plugin in to start/stop consumer. > > I'm aware of the Celery and how it nicely integrates into Django, but for > me it's not an option. > > What do you suggest? How to run RabbitMQ with Django (stability is the > main objective). > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/e2b0cfd3-f33f-485c-9497-98fd281c9cd2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/e2b0cfd3-f33f-485c-9497-98fd281c9cd2%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAJ2eVqY3PEkPauv%2BCsMZE1xofmkj%2BYcMJkWkfmvkdNbp_janQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

