Tutorials
Courses
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
DSA
19.9K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.1K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.3K+ articles
Python Django
580+ articles
Python Framework
68+ articles
Django-templates
31 posts
Recent Articles
Popular Articles
How to create Custom Template Tags in Django ?
Last Updated: 04 January 2021
Django offers a variety of built-in template tags such as {% if %} or {% block %}. However, Django also allows you to create your own template tags to perform custom actio...
read more
Python
Python Django
Django-templates
Django - Creating a 404 Error Page
Last Updated: 28 March 2023
The 404 error is raised when the URL called upon doesn't exist or has not been defined yet. This is commonly referred to as Page does not exist error. To handle requests f...
read more
Python
Python Django
Django-templates
Python Framework
Get the Current URL within a Django Template
Last Updated: 01 August 2024
Django, a high-level Python web framework, encourages rapid development and clean, pragmatic design. One common requirement when developing web applications is to access t...
read more
Python
Picked
Python Django
Django-templates
Access Constants in settings.py from Templates in Django
Last Updated: 01 August 2024
Django is a popular web framework known for its simplicity and powerful features, enabling developers to build robust web applications quickly. One of the essential compon...
read more
Python
Picked
Python Django
Django-templates
How to Access a Dictionary Element in a Django Template?
Last Updated: 16 August 2024
Accessing dictionary elements in Django templates can be accomplished through various methods, including direct access using dot or bracket notation, handling missing keys...
read more
Python
Picked
Python Django
Django-templates
Concatenate Strings in Django Templates
Last Updated: 08 August 2024
Concatenating strings in Django templates can be achieved through several methods, including using built-in filters, formatting, and custom template tags. Each method has ...
read more
Python
Picked
Python Django
Django-templates
Access Array Elements in a Django Template
Last Updated: 29 August 2024
Python lists are commonly used to represent arrays in Django. Having a basic understanding of how to access array items in Django templates is essential to displaying data...
read more
Python
Picked
Python Django
Django-templates
What is the equivalent of None in django Templates
Last Updated: 16 August 2024
In Python, `None` is a special value that means "no value." When using Django templates, you might need to check if a variable is `None` to show something else or handle e...
read more
Python
Picked
Python Django
Django-templates
Handle and Iterate Nested Dictionaries in Django Templates
Last Updated: 16 August 2024
Django templates offer various tags and filters to work with data. they are designed to readable and expressive. To iterate through a dictionary which contains a dictionar...
read more
Python
Picked
Python Django
Django-templates
Make the First Letter Uppercase Inside a Django Template
Last Updated: 16 August 2024
In this article, we'll explore how to make the first letter of a string uppercase inside a Django template. We will do this with the help of a simple Django project to ill...
read more
Python
Picked
Python Django
Django-templates
Change the Default Date Format in Django Template
Last Updated: 03 September 2024
We often need to display dates in a format different from the default for the sake of user experience. Django provides several ways to customize the date format directly w...
read more
Python
Picked
Python Django
Django-templates
How to Check for Last Loop Iteration in Django Template
Last Updated: 26 September 2024
Iterating over lists or querysets is a common task when working with Django templates. Sometimes, we may need to perform a specific action or modify the output during the ...
read more
Python
Picked
Python Django
Django-templates
Math Operation in Django Template
Last Updated: 24 September 2024
This article will guide you through how you can perform basic math operations within a Django template and best practices to handle more complex logic.Django Template Filt...
read more
Python
Picked
Python Django
Django-templates
How to Add Multiple Arguments to Custom Template Filter in a Django Template
Last Updated: 26 September 2024
In Django, template filters are useful for modifying data before displaying it in templates. While built-in filters cover common cases, custom logic is sometimes necessary...
read more
Python
Picked
Python Django
Django-templates
How to Perform Query Filtering in Django Templates
Last Updated: 27 September 2024
Sometimes we may want to filter or modify the list of objects within the template itself to tailor the data being displayed. While filtering should generally be done at th...
read more
Python
Picked
Python Django
Django-templates
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !