How to create Photo Gallery with Django

Introduction Here I will show you how to create photo gallery with Django. Django is a Python based framework used to build complete web applications. 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. You…

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 elements using a variable as an index, then you have to create custom tags and filter (acts as…

Working with media files in Django templates

Introduction This tutorial will show you working with media files in Python based Django templates. Media files, such as, images, videos etc. are frequently loaded into your 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 for explaining a certain…

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…