Application components

The components of this application include:

  • The database, created in Chapter 11Flask and GeoAlchemy2, which contains the tables for NBA Arenas, US States, US Counties, and US Congressional Districts
  • The app.py file, which initiates the application when called by a Python executable
  • The application folder, which contains the application code and folders
  • The __init__.py file, which makes the application folder into a module, defines the Flask object and connects to the database
  • The views.py file, which defines the API endpoints, the view functions, and the return responses
  • The models.py file, which defines the database table models as Python classes that subclass from SQLAlchemy
  • The forms.py file, which defines the HTML forms
  • The static and templates folders, which contain templates and data
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset