Category Archives: Django

Django Admin Interface

Here you will learn about working with django admin interface.  Prerequiests: It is necessary to learn about models first before working with Django admin panel. You can learn about models here. What is admin.py File in Django? We’ve created an app and a model in previous articles. But we haven’t stored anything yet to our database.… Read More »

Django Models

In this tutorial, we’re going to learn about models in django. Models are connected to our database. We can also say that a model contains the fields and behaviors of the data that we want to store into database. Normally each model is connected to a single table of our database. To understand models and… Read More »

Working with Apps in Django

In this tutorial, we’ll learn about: What is app in django project and why to use it? How to create app in django project? So let’s start with very first question. What is app in django project and why to use it? We’ve seen that how to create a project in django. Actually each django… Read More »

Working with Virtual Environment for Django Project

In this tutorial we’ll talk about virtual environment for django project. Here we’ll discuss about: 1. What is virtual environment and why to use it? 2. How to install virtual environment for django project? 3. How to use virtual environment in django project? So let’s start with our very first question. What is Virtual Environment… Read More »

How to Fetch Data from Template Forms to Views in Django

In this tutorial, we’ll see how we can fetch text/data from HTML forms in our templates to views.py to process it and then send that data to another html page. Before starting, let’s have a look on our project folder that what files we have and in what directory these files are stored. Here we’ve… Read More »

How to Add HTML Template in Django

In last tutorial we have seen, how we can return a HTML code through a string from views.py. It is not a good idea to pass whole HTML code through a string because if we have to design a complete webpage in HTML then we shouldn’t pass the whole code through the HttpResponse function because… Read More »

Django Custom Webpage

In this tutorial, we’re going to create our first custom webpage in django. The main goal of this article for you to understand the whole flow of information in django website like if someone asks for specific url then how do we route them into the correct places and ultimately give them back some HTML.… Read More »

Django Project Tour

In this tutorial, we’re going to take a look on each file that exists in our django project folder. Let’s say, we’ve created a project named as my_website on our desktop. Now open that folder you can see another folder (directory) with the same name inside our project folder. Along with this directory, we’ve other… Read More »