July 2019
Beginner to intermediate
302 pages
9h 38m
English
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 ...