Components of the Flask application

Now that the backend database and tables have been created and loaded with data and the relationships between the tables have been modeled and generated, it's time to write the scripts that will create the Flask application. These scripts will contain views, models, and forms that process web requests, query the database, and return an HTTP response.

The web application is called the Arena application, as it lists all of the NBA arenas stored in the arena table in a drop-down list, and allows the user to display the location on a map along with a popup that contains information about the arena from spatial queries and table relationships.

The MVC method of web development allows for separation between the ...

Get Mastering Geospatial Analysis 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.