A complete guide/tutorial to Django

What is Django?

Django is a Python framework that make developing database driven website that can be set up in mere hours for most simple websites. The elegance of Django is that the actual coding we have to do is very less and many a boilerplate coding that every developer codes in every app is already implemented. However everything is still kept customizable and tweak-able. There is also the obvious advantage of being able to use the enormous list of Python library modules.

Where should we use content types and generic relations in django?

Who is this tutorial for?

This tutorial assumes a basic knowledge of PYTHON and Django. Also it assumes you know how to create models, and manipulate them with basic querysets. If you are not confident about the aforementioned topics then this might help you.

Exploring iterators and generators in Python


The Python's glossary defines an iterator as

Thumbnail generation for Django with Sorl-Thumbnail

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.

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:

Recent Posts






RSS / Atom