Django RSS

Django offers you a feature of creating an RSS with the help of the syndication feed generating framework. With the help of this framework, you can easily create RSS feed or Atom feeds. For this, you just need to create a subclass of the django.contrib.syndication.views.Feed class. In here, we will be using the previously createdRead More

Django Form Processing

Form creation in Django is similar to the creation of a model. Once you inherit the Django class in your code, its attributes will help you to create the form fields. For this, you need to start by adding the file in the myapp folder. This file will contain all your app forms.Read More

Django Cookies Handling

There are times when you are required to store data on a per site visitor basis which goes well with the requirement of the web application. Always remember that cookies are stored on the client side. It is also dependent on your client browser security level. Well, sometimes cookies work properly and sometimes not. ThisRead More

Django File Uploading

This feature of a web application enables it to upload a file (such as an image, document, video, etc.). In this chapter, we will help you understand how to upload files within an application. Also Read: Django Generic Views How To Upload An Image? For this feature to work, you are required to have a pre-installedRead More

Django Generic Views

View writing is a bit difficult task in a few of the cases. For the successful completion of such a task, you will be required to have a static or a listing page. Django offers an easy way to set simple views which are also known as generic views. Also Read: Django Template System Generic viewsRead More

Django Apache Setup

Till now, in all our modules, we have been using the Django dev web server. But Django dev web server is used for testing purpose only. There will no involvement of the production environment. In such a scenario where you are required to get involved in the production then you should be using real serversRead More

Django Template System

It is possible using Django to separate the coding of HTML and Python. Until now, you must be clear with the fact that Python goes in Views. On the other hand, HTML goes in templates. Now, to link these two separately coded modules, there is a need to rely on the render function. Here, youRead More

Django Models

A model is a representation of tables or collections present in a database. This model makes sure that every attribute of the class denotes a field of the table or the collection. All the models are defined under the app/ file. As per our example, all the models will fall under myapp/ file. Also Read: DjangoRead More