Django

add-and-update-data-with-django-model-form

Add and update data with Model Form in django 3

Hello World, Welcome to ProjectsPlaza.com. Today I am going to discuss how to add and update data with ModelForm in Django 3. In this tutorial, We will create a simple todo application with add, update, and delete functionality. I have divided this tutorial into the following steps:

  • Create a learning project
  • Create todo app
  • Create todo Model
  • Create add and update form from todo model
  • Delete todo item
  • Add bootstrap 4 in the templates

This is a small but full-fledged application built with Django 3 and bootstrap 4. You can download source code from GitHub.

Read More »Add and update data with Model Form in django 3

how-to-upload-image-in-django

How to upload image in django

Hello World, Welcome to ProjectPlaza.com. Today we will discuss how to upload image in Django. We will create a simple form to upload a single image. We will upload an image with Django core FileSystemStorage package.  I have divided this tutorial into the following parts:

I have assumed that you have basic knowledge of Django. If not then please see this tutorial.

  • Path setting for upload folder
  • Create upload form
  • Upload Image

Read More »How to upload image in django

how-to-create-search-option-in-django-3

How to create search field in django admin

Hello World, Welcome to ProjectsPlaza.com. Today we will discuss how to create a search field in the Django admin panel. I am using Django 3. Django is a very powerful MVT (Model View Template) web Framework built with python. It comes with lots of features.

For creating a search option in the Django admin panel, We just need to activate the search features. If you have not created an admin panel in Django then please have a look at the following tutorial ūüĎá.

How to create an admin panel in Django 3

Read More »How to create search field in django admin

use-annotate-aggrgation-in-django

How to use annotate aggregation in django

Hello World, Welcome to ProjectsPlaza.com. Today we will discuss how to use annotate aggregation in Django. In this tutorial, we will fetch data from two different models. For example, I am creating a video sharing website like YouTube. I have two models. One is a channel and another is a video. Both models are joined with foreign keys. Now I want to fetch channels with videos count. I will do this with annotate aggregation.

Read More »How to use annotate aggregation in django

How to save form data in database in django

Hello World, Welcome to projectsplaza.com. Today we will learn how to save form data in the database in django. We will use the SQL database. I am assuming that you have installed Django in your system, If not then please refer to this tutorial. We will create a simple contact form in which the user will fill his basic information like full name, email, and message.
I have divided this tutorial into the following parts.

  • Create a contact model
  • Create contact form template
  • Submit form and save data in the database

Read More »How to save form data in database in django

How to create admin panel in django 3

Hello World, Welcome to projectsplaza.com. Today I am going to create a tutorial about the Django admin panel. In this tutorial, we will learn how to create an admin panel in Django 3. I will extend my previous tutorial in which we have learned how we can submit form data in the SQLite database with jquery ajax in Django 3.

Django comes with a powerful admin panel. We just need to configure this in our project. There are lots of features in this admin panel but not any then you can customize it at any level.

Read More »How to create admin panel in django 3

how-to-submit-form-data-with-jquery-ajax-in-django

How to submit data with jquery ajax in django 3

Hello World, Welcome to projectsplaza.com. Today I am going to create a tutorial on how to submit the form with jquery ajax in Django 3. This is a very simple tutorial. I will submit a form of data in the database without reloading the page in Django 3 with the help of jquery ajax. I have divided this tutorial into the following steps.

  • Setup¬†Django¬†with¬†learning¬†project¬†and¬†ajaxform¬†app
  • Create¬†a post¬†model
  • Setup¬†route¬†for¬†view
  • Create¬†form¬†template
  • Submit¬†form¬†data¬†in¬†the database¬†with¬†jquery¬†ajax
  • Verify¬†the¬†submitted¬†data

Read More »How to submit data with jquery ajax in django 3

How to create static application with django?

Hello World, Welcome to projectsplaza.com. This is the third tutorial of the series “learn Django from scratch with example“. In this tutorial, we will create a static blog application with Django. We will learn the following things in this tutorial.

  • How to create view templates in Django?
  • How to add static files in Django templates?
  • How to extend a template in Django?
  • How to share common data in all views?

Read More »How to create static application with django?