Django Tutorial Archives - W3school | Tutorialspoint
Django File Uploading

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-installed […]

Django Generic Views

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 views […]

Django Apache Setup

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 servers […]

Django Models

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/models.py file. As per our example, all the models will fall under myapp/models.py file. Also Read: Django […]

Django Page Redirection

There are several reasons for which you are required to have the facility of page redirection. From an action based page redirection to the one where you are required to resolve an error. For an instance, if a user enters a website, he/she gets redirected to the home page of the website or after the […]

Django URL Mapping

Django URL Mapping

Now, when you have successfully created a view for your application, you are required to access this view using an associated URL. Django framework owns a separate way of URL mapping which is done with the help of url.py file. You can locate this file under the myproject/url.py path. The file will contain the following […]

Django Admin Interface

Django Admin Interface

Django offers an interactive graphical user interface (GUI) to deal with all the administrative activities. Every web project requires a ready-to-use admin interface and that’s where Django can help you. This framework automatically generates an admin interface according to your provided project models. Also Read: Django View Creation How to Start an Admin Interface? This automatically […]

Django Application Life Cycle

Django Application Life Cycle

A project is a group of applications. Each and every application has a specific aim and this application can be included in any project. For example, you can create an application which serves as a contact form and that can be reused in several different projects. Also Read: Django Project Creation Application Creation Locate your project’s […]