Python

Python Flask Multiple Files Upload Example

Introduction The tutorial, Python flask multiple files upload example, will show you how to upload multiple files using Python 3 and Flask technologies. You may also find useful example on file upload on different technologies. You may like to read Python Flask File Upload Example. Prerequisites Have Python installed in Windows (or Unix)Pyhton version and PackagesI […]

How to create Photo Gallery with Django

Introduction Here we will see how to create photo gallery with Django. Photo gallery also known as image gallery, media gallery or photo album is used to manage your photos. You can view the images one by one from a list of images in a gallery. In this example we will use some images to […]

Creating custom template tags and filter in Django

Introduction Creating custom tags and filter in Django templates is pretty simple. It acts like a custom function that can be used in Django templates. The situation may occur where you need to split a string or you need to access array element using variable as an index, then you have to create custom tags […]

Working with media files in Django templates

Introduction In this tutorial we will see working with media files in Django templates. Media files, such as, images, videos etc. are frequently loaded into our web application as these files improve end users’ experience. Note that static resources or files and media files are two different things. Media files are generally uploaded by users […]

Working with static resources in Django templates

Introduction In this tutorial we will see working 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 […]

Working with parent and child templates in Django

Introduction Here we will see working with template inheritance in Django or on other words, working with parent and child templates in Django. Being a 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 as […]

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 technologies. You may also find useful example on file upload on different technologies. You may like to read Python Flask Multiple Files Upload Example. Prerequisites Have Python installed in Windows (or Unix)Pyhton version and […]

Python 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. We 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 […]

Scroll to top