December 2018
Intermediate to advanced
374 pages
11h 39m
English
Whenever a user visits our application, most likely it will be the case that the user will be landing on the home page of the application. So, the first thing we build is the index view. This will also be one of the places where we can understand how to build simple views in Flask.
So, as the first step, let's create a new module inside the views directory of our project workspace for the index module by executing the following commands:
mkdir bugzot/views/indextouch bugzot/views/index/__init__.py
With this, we are now ready to code our first view, the code for which follows:
'''File: index.pyDescription: The file provides the definition for the index view which is used to render the homepage of Bugzot.'''from bugzot.application ...
Read now
Unlock full access