Python Flask Online Visitor Tracking System

Introduction We will discuss here how to build a simple online visitor tracking system using Python Flask. Every website owner would like to know the progress to the count of the online visitors because it gives them overall idea on the website’s analytical measurements. It will also give them how to make improvements on the websites. We will use here…

Working with Parent and Child Templates in Flask

Introduction I will discuss here how to work with parent and child templates in flask framework. In other words it is said template (Jinja) inheritance. So I will create a base or parent template which child template or pages will extend to include the common functionalities instead of repeating common functionalities into every page you need to use for your…

Context Processors in Flask API

Introduction I will explain here about the context processors in Python based web Flask API. Flask is a light-weight framework with a set of rich features for creating wonderful web application in Python programming language. In standard context of the flask API, there are some global variables which are, by default, available in Jinja 2 templates and you can easily…

Working with Static Resources CSS JS Image in Flask Template

Introduction I am going to discuss about working with static resources such as css, js, images in flask template. This tutorial will show you how to use css (Cascading Style Sheet), js (JavaScript) and image files. You need such static resources to generally enhance the look of the web pages and to communicate with the server side code when a…

Python Flask Login Logout with Remember Me Option

Introduction In this post we are going to see how to give users opportunity to remember their login credentials through cookie so that next time they try to login to the application do not require username and password for login. In our previous tutorials we have seen how to login and logout from an application using the following examples: Python…

AJAX File(s) Upload using Python Flask and jQuery

File(s) Upload I will create an example here and I will show you how to upload single file or multiple files using AJAX and jQuery along with Python Flask technologies. You can either upload single file using browse button or multiple files using browse button by holding CTRL key(in Windows OS) from keyboard while selecting multiple files. The file or…

Python Flask REST API Login Logout Example

Introduction We will create REST APIs to allow users login and logout from an application using Python and Flask. We have seen in another tutorial how to login and logout from an application where UI or front end was built using flask template file but here we are not providing any UI or front end but UI or front end…

Bootstrap Calendar Events Demo using Python Flask MySQL

Introduction We will create bootstrap calendar events demo using Python Flask MySQL. We had created similar example using Codeigniter (PHP framework) and MySQL. We will use the same version of bootsrap library 2.3.2 because using bootstrap version 4.3.1 the layout becomes a little messy. It helps users to track easily what all upcoming events are or past events were there…

Python Flask REST API Multiple Files Upload

Multiple Files Upload This example is about to upload multiple files using Python Flask REST API. You might have also seen how to upload single file using Python Flask REST API. You may need to upload single or multiple files according to application’s requirements and here I am going to create an example on Python Flask REST API multiple files…

Python Flask REST API File Upload Example

File Upload I will create here Python Flask REST API file upload example though you might have seen how to upload file using Python Flask in web application. You may need to upload a single file or multiple files into your application for a reason and here I am going to use light-weight web based Python framework called Flask to…