Skip to Content
Flask Framework Cookbook - Second Edition
book

Flask Framework Cookbook - Second Edition

by Shalabh Aggarwal
July 2019
Beginner to intermediate
302 pages
9h 38m
English
Packt Publishing
Content preview from Flask Framework Cookbook - Second Edition

Getting ready

We will start with our catalog application and make appropriate changes to it to make it deployable using the Apache HTTP server.

First, we should make our application installable so that our application and all its libraries are on the Python load path. This can be done using a setup.py script, as shown in the Making a Flask app installable using setuptools recipe in Chapter 1, Flask Configurations. There will be a few changes to the script as per this application. The major changes are mentioned here:

packages=[ 
    'my_app', 
    'my_app.catalog', 
], 
include_package_data=True, 
zip_safe = False,install_requires=[    'Flask>=0.10.1',    'flask-sqlalchemy',    'flask-wtf',    'flask-babel',    'sentry-sdk',    'blinker',    'geoip2',], 

First, we mentioned ...

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

Writing a Web Application with Flask

Writing a Web Application with Flask

Doug Farrell
Mastering Flask

Mastering Flask

Jack Stouffer

Publisher Resources

ISBN: 9781789951295Supplemental Content