Blog

Blog

Numeric for loop in Django templates

Django templates give us a little control over the flow of rendering. for loop is often used in the Django templates it often satisfies the needs to iterate over lists or tuples. For example, a queryset with multiple models can be iterated over in the templates with the for loop:

Managing multiple websites with a common database in Django - The 'Sites' Framework

Django provides the sites framework which allows us to associate the data (objects/models) and functionality with a particular website. This is particularly useful if you are managing multiple websites with a single code base (as in a content-management system) or multiple websites that share a common database.

Handling some practical Issues With Django querysets

In this post I would like address some the problems that developers regularly face with Querysets.

Python Lists, Shallow and Deep Copy

In python, as we know copying lists is not same as copying variables of data types like integer. Let us see different situations we come across while copying the lists.

Django Pagination of Data

Pagination is, dividing data into multiple pages each of fixed size. Modern web applications host huge amounts of data and returning all the data at once is not only not user-friendly but it can choke the network.

Recent Posts

Archive

2022
2021
2020
2019
2018
2017
2016
2015
2014

Tags

Authors

Feeds

RSS / Atom