URLs

Finally, within the HTML form section, we designate where the description and a drop-down list will go and include a hidden token (CSRF), which is required for authentication.

With the models generated and data added to the associated tables, it's time to generate some views, which will process our web requests and return the data required to complete our request. 

To correctly route our requests, we have to first create some URLs that will be paired with a view. This will require both project-level and application-level configuration. Unlike Flask, URLs are not attached to views using Python decorators. Instead, they are contained in separate scripts that will either map to an application or a view.

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.