Django Tutorial
Django is a web development framework that assists in building and maintaining quality web applications. Django helps eliminate repetitive tasks making the development process an easy and time saving experience. This tutorial gives a complete understanding of Django.
Django - Basics
Before you proceed, make sure that you understand the basics of procedural and object-oriented pr...
Django - Overview
As you already know, Django is a Python web framework. And like most modern framework, Django sup...
Django - Environment
Django development environment consists of installing and setting up Python, Django, and a Databa...
Django - Creating a Project
Now that we have installed Django, let's start using it. In Django, every web app you want to cre...
Django - Apps Life Cycle
A project is a sum of many applications. Every application has an objective and can be reused int...
Django - Admin Interface
Django provides a ready-to-use user interface for administrative activities. We all know how an a...
Django - Creating Views
A view function, or “view” for short, is simply a Python function that takes a web request and re...
Django - URL Mapping
Now that we have a working view as explained in the previous chapters. We want to access that vie...
Django - Template System
Django makes it possible to separate python and HTML, the python goes in views and HTML goes in t...
Django - Models
A model is a class that represents table or collection in our DB, and where every attribute of th...
Django - Page Redirection
Page redirection is needed for many reasons in web application. You might want to redirect a user...
Django - Sending E-mails
Django comes with a ready and easy-to-use light engine to send e-mail. Similar to Python you just...
Django - Generic Views
In some cases, writing views, as we have seen earlier is really heavy. Imagine you need a static ...
Django - Form Processing
Creating forms in Django, is really similar to creating a model. Here again, we just need to inhe...
Django - File Uploading
It is generally useful for a web app to be able to upload files (profile picture, songs, pdf, wor...
Django - Apache Setup
So far, in our examples, we have used the Django dev web server. But this server is just for test...
Django - Cookies Handling
Sometimes you might want to store some data on a per-site-visitor basis as per the requirements o...
Django - Sessions
As discussed earlier, we can use client side cookies to store a lot of useful data for the web ap...
Django - Caching
To cache something is to save the result of an expensive calculation, so that you don’t perform i...
Django - Comments
Before starting, note that the Django Comments framework is deprecated, since the 1.5 version. No...
Django - RSS
Django comes with a syndication feed generating framework. With it you can create RSS or Atom fee...
Django - Ajax
Ajax essentially is a combination of technologies that are integrated together to reduce the numb...