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.

..................Content has been hidden....................

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