October 2018
Intermediate to advanced
332 pages
8h 9m
English
In order to make our new Flask extension available to others, we have to create an installable Python package from the code we have written so far. To begin, we need a new project directory outside of our current application directory. We will need two things: a setup.py file, which we will fill in later, and a folder named flask_youtube. In the flask_youtube directory, we will have an __init__.py file, which contains all the code that we wrote for our extension. This includes the Youtube and the Video Python classes.
Also, inside the flask_youtube directory, we will need a templates directory, which holds the youtube directory that we put in our app's templates directory.
In order to turn this code into a Python ...