Working with static resources in Django templates

Introduction In this tutorial I will show you how to work with static resources in Django templates. Static resources, such as, css (Cascading Style Sheet), images, js (JavaScript) are frequently required to include in our web application as these resources increase look and feel and to handle any events of the web pages. Django provides django.contrib.staticfiles to help you manage…

Working with parent and child templates in Django

Introduction Here I will show you how to working with template inheritance in Django or on other words, working with parent and child templates in Django framework. Being a Python based web framework, Django needs a convenient way to generate HTML dynamically. The most common approach relies on templates. A template contains the static parts of the desired HTML output…

Read Last n Lines From File Using Python

Read File This tutorial will show you how to read last n lines from file using Python programming language. The last n lines means, last 5 lines or last 10 lines etc. So n can be replaced by any positive integer value. Generally you read file from the beginning but sometimes for your business requirements you may need to read…

Fibonacci Series using Python Programming

Introduction Here we will see fibonacci series using Python programming. A fibonacci series is a series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. For example, the series is – 1, 1, 2, 3, 5, 8, etc. By definition, the first two numbers in the Fibonacci sequence are either 1 and…

Python Flask File Upload Example

Introduction The tutorial, Python flask file upload example, will show you how to upload single file using Python 3 and Flask web framework. You may also find useful example on file upload on different technologies. In this file upload example I am going to show you how to select single file and upload in the server.

Python Flask Login and Logout Example

Introduction The tutorial, Python login and logout example will show you how to login and logout a user using session in Python 3. You may need users to authenticate/authorize using credentials when there are protected areas in web application. For example, you need to authenticate when you are accessing your savings account details using netbanking. Prerequisites Python 3.6.6 – 3.9.5,…

Python REST APIs + Flask + Angular CRUD Example

Flask Angular CRUD Here you will see Python REST APIs + Flask + Angular CRUD Example. I will use the existing tutorial on Python REST API CRUD Example using Flask and MySQL for server side and I will introduce Angular on UI (user Interface) or front-end side. So go through the mentioned tutorial before proceeding further down. Recommended reading: Python web application CRUD…

Flask REST API CRUD Example

FLAK REST CRUD Here you will see Flask REST API CRUD Example. You might have also seen how to create web application CRUD example using Python, Flak and MySQL. REST is an acronym that represents Representational State Transfer. You may also like to read REST APIs in Java and Spring Technologies.

Find all users connected to wifi network using Python 3

Introduction This example will show you how to find all users connected to wifi network using Python 3. Sometimes just for fun we may want to know who all are connected to the same wifi network. We can also use the command netsh wlan show network in cmd window under Windows Operating System to find out who all users are…

How to check saved password in wifi network using Python 3

Introduction This tutorial will show you how to check saved password in wifi network using Python 3. It’s for your experiment purpose only and it does not retrieve your forgotten password from wifi network. Problem Scenario Suppose you have saved your wifi network password and every time you connect to the wifi network you don’t need to input password but…