Viewing posts from July, 2017
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:
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.
In this post I would like address some the problems that developers regularly face with Querysets.
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.
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.
We develop web applications to our customers using python/django/angular.
Contact us at hello@cowhite.com