python flask

Flask File Handling Made Easy: Upload and Download Files

Very basic example code_features This is our first example… Run this code first. Then read the step by step explanation. That will be more effective. Because this tutorial is all about practice. In this article covers simple upload, upload to database, securing the upload by adding limiting file extension and adding download link… Run the […]

How To Generate URL And Route Dynamically In Flask

We can set route dynamically instead of fixed route. For example In the pre-determined route links generate like this example.com/users/profile In the dynamically gendered route will be like this example.com/users/custom_profile_name We will use @app.route(‘/<username>’) The code will be like this We can use anything in the <username> here So if we load page like example.com/anything_here […]

Python Flask : Starter Automated Template

When starting new project again, Some common structure needed to be written again and again. So I wrote a program nearly three years (2021) ago to Get Everything ready on one script. Here is the python script that makes everything ready Here is is the revised version of the code The Program Automatically generates basic […]