Skip to Content
Mastering Flask Web Development - Second Edition
book

Mastering Flask Web Development - Second Edition

by Daniel Gaspar, Jack Stouffer
October 2018
Intermediate to advanced
332 pages
8h 9m
English
Packt Publishing
Content preview from Mastering Flask Web Development - Second Edition

Setting up Celery and RabbitMQ

To install Celery on our virtualenv, we need to add it to our requirements.txt file:

... Celery...

As always, use the provided init.sh script, or use the procedure explained here to create and install all dependencies on a Python virtual environment.

We will also need a Flask extension to help handle the initialization of Celery:

$ pip install Flask-Celery-Helper

The Flask documentation states that Flask extensions for Celery are unnecessary. However, getting the Celery server to work with Flask's application context, when your app is organized with an application factory, is significant. So, we will use Flask-Celery-Helper to do the heavy lifting.

Next, RabbitMQ needs to be up and running. To do this easily, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Flask Web Development, 2nd Edition

Flask Web Development, 2nd Edition

Miguel Grinberg
Flask Web Development

Flask Web Development

Miguel Grinberg

Publisher Resources

ISBN: 9781788995405Supplemental Content