Archive for the ‘flask’ Category

Form Handling in Flask

September 9, 2020 Leave a comment

Forms are an essential part of any web application but unfortunately working with them is quite difficult. It all starts with the client, first, you have to validate the data on client side, then on the server. If that’s not enough, you have take care of all the security concerns like CSRF, XSS, SQL Injection and so on. All in all, that’s a lot of work. Fortunately, we have an excellent library called WTForms to do the heavy lifting for us. Before we learn more about WTForms, the following section gives you a little tour on how you can go about handling forms in Flask without using any library or package.

Categories: flask, Interesting

Providing feedback and notifications to users using Flask’s flash function

November 24, 2019 Leave a comment

Providing feedback to users of a web application is critical, from notifications and error messages to warnings and progress alerts.

If the application doesn’t the right level of feedback, chances are the user will become frustrated and end up having a bad experience.

Fortunately for us, Flask provides a simple way to send messages from the server to the client using flash.

Categories: flask

Running Flask on Kubernetes

October 1, 2018 Leave a comment

Posted by Michael Herman on Sep 19, 2018

In this post, we’ll first take a look at Kubernetes and container orchestration in general and then we’ll walk through a step-by-step tutorial that details how to deploy a Flask-based microservice (along with Postgres and Vue.js) to a Kubernetes cluster.


Categories: flask, postgresql, python Tags: , ,

DigitalOcean – How To Structure Large Flask Applications

March 10, 2016 Leave a comment

There are many methods and conventions for structuring Python web applications. Although certain frameworks are shipped with tools (for scaffolding) to automate — and ease — the task (and the headaches), almost all solutions rely on packaging / modularizing applications as the codebase gets distributed [logically] across related files and folders.

The minimalist web application development framework Flask, has its own – blueprints.

Read the full article in the link below:

Categories: flask, python Tags: ,