Viewing posts by ravi
The Python's glossary defines an iterator as
Media is the common cause of slow page loading and rendering, and they occupy majority of the bandwidth. Though the costs of storage is not the matter of primary concern, the bandwidth is an important factor, especially with huge user base on mobiles. Compressing and resizing of images is best way to handle this situation.
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.
We develop web applications to our customers using python/django/angular.
Contact us at hello@cowhite.com