Initializing the Flask project

So, we are finally entering the fun phase of our project where we will be building this project from scratch. So, let's not wait too long before we can see some action. The first thing we will do is to set up a basic project with Flask and get it running. To do this, let's fire up our code editor and set up our initial code base.

Let's open up the file bugzot/application.py and initialize our application code base:

'''File: application.pyDescription: The file contains the application initialization             logic that is used to serve the application.'''from flask import Flask, sessionfrom flask_bcrypt import Bcryptfrom flask_session import Sessionfrom flask_sqlalchemy import SQLAlchemy# Initialize our Flask application ...

Get Hands-On Enterprise Application Development with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.