Understanding the customized features of the file uploader Uploading a file is a simple task. There are several ways to do it, and these different approaches have different effects on …

Understanding the customized features of the file uploader Uploading a file is a simple task. There are several ways to do it, and these different approaches have different effects on …
Building the app skeleton When we have an empty file, the best starting option is to always use the skeleton we adopted in the two web applications we implemented previously. …
Creating a suitable file uploader for web apps As you can imagine, this time, we are not using the radio button. Instead, we are directly uploading the files. So, referring …
Understanding the logic behind the login and signup page When a user creates an account on a website or application, they are typically asked to provide a username and password. …
Figure 13.1 shows all these steps, from creating the new directory to installing the required libraries: Figure 13.1: Virtual environment and app.py file preparation Now, we are ready to edit …
What is SHA-256 and why should we use it? SHA-256 is a cryptographic hash function that produces a 256-bit hash value from a data input. It is part of the …
Connecting to a relational database and interacting with it As explained in the Understanding the logic behind the login and signup page section, we want to save the accounts in …
Creating the Login menu First, we need a couple of text inputs, one for the username and one for the password, after which we can put them in the sidebar. …
Creating the Sign Up menu The logic is the same as that for the Login function but we must make a couple of changes, as shown in the following code: …
Here’s what we are doing in the preceding code: At this point, we’ve finished coding. We can try out the entire set of features of the web application, starting with …