The Wayback Machine - https://web.archive.org/web/20240913100612/https://www.geeksforgeeks.org/receipt-print-with-gui-using-django/
Open In App

Receipt Print with GUI using Django

Last Updated : 30 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

In this article, we will guide you through creating a Recipe Print GUI. To achieve this, we first establish a login system, allowing sellers to create accounts through registration and subsequent login. Once logged in, we provide a straightforward form where sellers input the name, price, and quantity of materials. After clicking the “Add” button, the system calculates the total by multiplying the price and quantity, and the sum is displayed in a table at the bottom. Sellers can conveniently manage their data by accessing options to delete or update entries with a single click. When ready, they can generate bills effortlessly by clicking the “Generate Bill” button. Finally, sellers can log out with a simple click on the “Logout” button.

Receipt Print with GUI using Django

Sellers can conveniently manage their data by accessing options to delete or update entries with a single click. When ready, they can generate bills effortlessly by clicking the “Generate Bill” button. Finally, sellers can log out with a simple click on the “Logout” button.

To install Django follow these steps.

Starting the Project Folder

To start the project use this command

django-admin startproject core
cd core

To start the app use this command

python manage.py startapp home

Now add this app to the ‘settings.py’

INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"home",
]

File Structure

file-for-GUI

file Structure

Setting Necessary Files

models.py: This Django model defines a Receipt with fields for user association, name, price, quantity, and total. It includes a foreign key to the User model and sets default values for the fields.

Python
from django.db import models
from django.contrib.auth.models import User

class Receipt(models.Model):
    user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, blank=True)
    name = models.CharField(max_length=100, default='something')
    price = models.IntegerField(default=0)
    quantity = models.IntegerField(default =0)
    total = models.IntegerField(default=0)

views.py: The functions in the view file collectively build a Django web application for managing receipt data, user accounts, and generating PDFs.

Python
from django.shortcuts import render, redirect
from .models import Receipt  
from django.http import HttpResponse, JsonResponse, HttpResponseRedirect
from django.contrib import messages
from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required 
from django.contrib.auth.models import User
from django.contrib.auth import logout

@login_required(login_url='/login/')
def receipts(request):
    if request.method == 'POST': 
        data = request.POST
        name = data.get('name')
        price = data.get('price')
        quantity = data.get('quantity')
        total = float(price) * int(quantity)

        Receipt.objects.create(
            name = name,
            price=price,
            quantity=quantity,
            total=total
        )
        return redirect('/')

    queryset = Receipt.objects.all()
    if request.GET.get('search'):
        queryset = queryset.filter(
            name__icontains=request.GET.get('search'))
        
      # Calculate the total sum
    total_sum = sum(receipt.total for receipt in queryset)
    context = {'receipts': queryset, 'total_sum': total_sum}
    return render(request, 'receipts.html', context)
@login_required(login_url='/login/')
def update_receipt(request, id):
    queryset = Receipt.objects.get(id=id)

    if request.method == 'POST':
        data = request.POST   
        name = data.get('name')
        price = data.get('price')
        quantity = data.get('quantity')
        total = float(price) * int(quantity)
        
        queryset.name = name
        queryset.price = price
        queryset.quantity = quantity
        queryset.total = total
        queryset.save()
        return redirect('/')

    context = {'receipt': queryset}
    return render(request, 'update_receipt.html', context)

@login_required(login_url='/login/')
def delete_receipt(request, id):
    queryset = Receipt.objects.get(id=id)
    queryset.delete()
    return redirect('/')

def login_page(request):
    if request.method == "POST":
        try:
            username = request.POST.get('username')
            password = request.POST.get('password')
            user_obj = User.objects.filter(username=username)
            if not user_obj.exists():
                messages.error(request, "Username not found")
                return redirect('/login/')
            user_obj = authenticate(username=username, password=password)
            if user_obj:
                login(request, user_obj)
                return redirect('receipts')
            messages.error(request, "Wrong Password")
            return redirect('/login/')
        except Exception as e:
            messages.error(request, "Something went wrong")
            return redirect('/register/')
    return render(request, "login.html")

def register_page(request):
    if request.method == "POST":
        try:
            username = request.POST.get('username')
            password = request.POST.get('password')
            user_obj = User.objects.filter(username=username)
            if user_obj.exists():
                messages.error(request, "Username is taken")
                return redirect('/register/')
            user_obj = User.objects.create(username=username)
            user_obj.set_password(password)
            user_obj.save()
            messages.success(request, "Account created")
            return redirect('/login')
        except Exception as e:
            messages.error(request, "Something went wrong")
            return redirect('/register')
    return render(request, "register.html")

def custom_logout(request):
    logout(request)
    return redirect('login') 

@login_required(login_url='/login/')
def pdf(request):
    if request.method == 'POST':
        data = request.POST    
        name = data.get('name')
        price = data.get('price')
        quantity = data.get('quantity')
        total = float(price) * int(quantity)

        Receipt.objects.create(
            name = name,
            price=price,
            quantity=quantity,
            total=total
        )
        return redirect('pdf')

    queryset = Receipt.objects.all()

    if request.GET.get('search'):
        queryset = queryset.filter(
            name__icontains=request.GET.get('search'))
        
     
    total_sum = sum(receipt.total for receipt in queryset)

    context = {'receipts': queryset, 'total_sum': total_sum}
    return render(request, 'pdf.html', context)

Creating GUI

login.html: This HTML code is for a basic login page within a Bootstrap-styled container. It includes fields for a username and password, a “Login” button, and a link to create a new account. The page uses some custom CSS for styling and includes external libraries for additional styling.

HTML
<!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <title>Job Portal</title>
</head>
<style>
    .text{
        color: green;
        font-weight: bold;
        font-family: 'Times New Roman', Times, serif;
      }
  
</style>
<body><br><br><br><br>

   
   <br><br>
    
    <div class="container  mt-4 bg-white col-md-3 card shadow p-3 " id="log">
        <div class="login-form">
            {% if messages %}
            {% for message in messages %}
            <div class="alert alert-success {{ message.tags }} mt-4" role="alert">
                {{ message }}
            </div>
            {% endfor %}
            {% endif %}
            <form action="" method="post">
                {% csrf_token %}
                <h3 class="text text-center"> GeeksforGeeks </h3>
                <h4 class="text-center" style="font-family: 'Times New Roman', Times, serif;">  Login </h4>
                <div class="form-group">
                    <input type="text" class="form-control" name="username" placeholder="Username" required
                        style="background-color: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 10px;">
                </div>
                <div class="form-group mt-2">
                    <input type="password" class="form-control" name="password" placeholder="Password" required
                        style="background-color: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 10px;">
                </div>
                <div class="form-group mt-2">
                    <button class="btn btn-success btn-block" style="margin-left: 138px;">Login ????</button>
                </div>
                <br>
            </form>
            <p class="text-center" style="color: #555;"><a href="{% url 'register' %}" style="color: #007bff;">Create an
                    Account.➡️</a></p>
        </div>
    </div>

</body>

</html>

register.html: This HTML code is for a simple registration page. It includes fields for a username and password, a “Register” button, and a link to log in. The page uses Bootstrap and Font Awesome for styling and includes custom CSS for additional styling.

HTML
<!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <title>Job Portal</title>
</head>

<body>

    <style>
        .text{
            color: green;
            font-weight: bold;
            font-family: 'Times New Roman', Times, serif;
          }

    </style>

    <body>
        <br> <br><br><br><br><br>

        <div class="container mt-4   bg-white mx-auto col-md-3 card shadow p-3">
            <div class="login-form">
                {% if messages %}
                {% for message in messages %}
                <div class="alert alert-success {{ message.tags }}" role="alert">
                    {{ message }}
                </div>
                {% endfor %}
                {% endif %}
                <form action="" method="post">
                    {% csrf_token %}
                    <h3 class="text text-center"> GeeksforGeeks </h3>
                    <h4 class="text-center" style="font-family: 'Times New Roman', Times, serif;"> Register </h4>
                    <div class="form-group">
                        <input type="text" class="form-control" name="username" placeholder="Username" required>
                    </div>
                    <div class="form-group mt-2">
                        <input type="password" class="form-control" name="password" placeholder="Password" required>
                    </div>
                    <div class="form-group mt-2">
                        <button class="btn btn-success btn-block" style="margin-left: 117px;">Register ????</button>
                    </div>
                    <br>
                </form>
                <p class="text-center"><a href="{% url 'login' %}">Log In ➡️</a></p>
            </div>
        </div>

    </body>

</html>

receipt.html: This HTML template extends a base template, and it creates a form for users to add receipts with item details. It also displays a list of existing receipts in a table, allowing users to delete or update them. The page includes styling with Bootstrap and custom CSS for aesthetics and layout. Additionally, there are options to generate a bill and log out.

HTML
{% extends "base.html" %}
{% block start %}

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
  .text{
    color: green;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
  }.ok{
    color: white;
    text-decoration: none;
  }
  .ok:hover{
    color: white;
    text-decoration: none;
  }
</style>

<div class="container mt-5 col-6">
    <form class="col-6 mx-auto card p-3 shadow-lg" method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <h3 class="text text-center"> GeeksforGeeks </h3>
        <br>
        <h4 style="font-family: 'Times New Roman', Times, serif;"> Create Receipt???? </h4>
        <hr>
        <div class="form-group">
          <label for="exampleInputEmail1">Item Name </label>
          <input type="text" name="name" class="form-control" required>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">Price </label>
          <input name="price" type="number" class="form-control" required>
         </div>
        <div class="form-group">
          <label for="exampleInputPassword1">Quantity </label>
          <input name="quantity" class="form-control" type="number" required>
        </div>
        <button type="submit" class="btn btn-success">Add Data ????</button>
    </form>
    <hr>
    <div class="class mt-5">
        <form action="">
          <button class="btn btn-primary"> <a class="ok" href="{% url 'pdf' %}">Generate Bill </a></button>
          <button class="btn btn-danger"> <a class="ok" href="{% url 'logout' %}">Logout </a></button>
        </form>

        <table class="table mt-6">
            <thead>
                <tr>
                    <th scope="col">S.No. </th>
                    <th scope="col">Item name </th>
                    <th scope="col">Price </th>
                    <th scope="col">Quantity </th>
                    <th scope="col">Total </th>
                    <th scope="col">Actions ????</th>
                </tr>
            </thead>
            <tbody>
                {% for receipt in receipts %}
                <tr>
                    <th scope="row">{{forloop.counter}}</th>
                    <td>{{receipt.name}}</td>
                    <td> ₹{{receipt.price}}</td>
                    <td>{{receipt.quantity}}</td>
                    <td>  ₹{{receipt.total}}</td>
                    <td>
                        <a href="/delete_receipt/{{receipt.id }}" class="btn btn-danger m-2">Delete </a>
                        <a href="/update_receipt/{{receipt.id }}" class="btn btn-success">Update </a>
                    </td>
                </tr>
                {% endfor %}
                <tr>
                    <th colspan="4" class="text-right">Total Sum :</th>
                    <td>{{ total_sum }}</td>
                </tr>
            </tbody>
        </table>
    </div>
{% endblock %}

update_receipt.html: This HTML template is for updating data in a web application. It includes a form for editing details related to an item, with fields pre-filled using existing data. The page uses Bootstrap for styling and some custom CSS. Users can update the data by clicking the “Update Data” button.

HTML
{% extends "base.html" %}
{% block start %}

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
  .text{
    color: green;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
  }
</style>

<div class="container mt-5 col-5">

  <form class="col-6 mx-auto card p-3 shadow-lg" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    <h3 class="text  text-center"> GeeksforGeeks </h3>
    
    <h4 style="font-family: 'Times New Roman', Times, serif; font-size:20px;">Update Data </h4>
   
    <div class="form-group">
      <label for="exampleInputEmail1">Item name </label>
      <input type="text" name="name" value="{{receipt.name}}" class="form-control" required>
    </div>
    <div class="form-group">
      <label for="exampleInputEmail1">Price </label>
      <input name="price" type="number" value="{{receipt.price}}" type="text" class="form-control" required>
    </div>
    <div class="form-group">
      <label for="exampleInputPassword1">Quantity </label>
      <input name="quantity" type="number" value="{{receipt.quantity}}" class="form-control"
        required>
    <br> 

    <button type="submit" class="btn btn-danger">Update Data ????</button>
  </form>


</div>

{% endblock %}

pdf.html: This HTML template creates a receipt for a purchase with the following features:

  • It includes Bootstrap for styling and custom CSS.
  • Displays company details, item information, and a total sum.
  • Provides a “Generate Receipt” button that triggers the print functionality when clicked.
  • JavaScript is used to extract the receipt content and initiate printing.

The page offers a printable receipt for users to save or use for their records.

HTML
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Receipt</title>

    <!-- Add Bootstrap CSS Link -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .invoice {
            text-align: center;
            margin-left: 33%;
        }

        .o123 {
            margin-top: 3%;
            margin-left: 1%;
        }

        .company {
            margin-left: 80%;
            margin-top: -20%;
        }

        .amount {
            margin-left: 76%;
        }

        .total {
            margin-left: 70%;
        }

        .sign {
            margin-top: 3%;
            margin-left: -13%;
        }

        .receipt-container {
            padding: 20px;
            border: 2px solid #000;
            border-radius: 10px;
            background-color: #fff;
            margin-top: 30px;
        }

        .receipt-header {
            text-align: center;
        }

        .receipt-title {
            font-size: 24px;
            color: #333;
        }

        .receipt-details {
            font-size: 16px;
            color: #555;
            margin-top: 20px;
        }

        .receipt-table {
            width: 100%;
            margin-top: 20px;
            border-collapse: collapse;
        }

        .receipt-table th,
        .receipt-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }

        .receipt-total {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-top: 20px;
        }

        .receipt-footer {
            margin-top: 20px;
            font-size: 16px;
            color: #555;
        }

        .btn {
            margin-left: 48%;
            margin-top: 2%;

        }

        h2 {
            color: green;

        }

        img {
            width: 200px;
            height: 150px;
        }
        #date{
            margin-left: 120px;
           
        }
    </style>
</head>

<body>

    <div id="mn" class="container receipt-container col-8">
        <div class="receipt-header">
            <img src="https://i.ibb.co/FDKRRtN/gfg.jpg" alt="">

        </div>
     

        <div class="row" >
            <div class="col-xl-10" id="date">

                <br><br>
                <br><br>
                <ul class="list-unstyled company float-end">
                    <li style="font-size: 20px; "> <b>Address :</b></li>
                    <li>Noida,Uttar Pradesh</li>
                    <li>1800 258 4458</li>
                    <li>geeksforgeeks.org</li>
                </ul>
            </div>
        </div>
        <br><br>
        <table class="receipt-table">
            <thead>
                <tr>
                    <th>Description</th>
                    <th>Amount/Piece</th>
                    <th>Quantity</th>
                    <th>Total</th>
                </tr>
            </thead>
            <tbody>


                {% for receipt in receipts %}
                <tr>
               
                  <td>{{receipt.name}}</td>
                  <td> ₹ {{receipt.price}}</td>
                  <td>{{receipt.quantity}}</td>
                  <td> ₹ {{receipt.total}}</td>
                         
              
              </tr>
                {% endfor %}
              
            </tbody>
        </table>
        <p class="receipt-total">Total Sum: ₹{{ total_sum }}</p>
        <div class="receipt-footer">
            <p>Thank you for your purchase!</p>
        </div>
    </div>

    <button onclick="myfun('mn')" type="button" class="btn btn-success btn1 ">Generate Receipt</button>

    <!-- Add Bootstrap JS and jQuery -->
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.min.js"></script>
    <script type="text/javascript">
        function myfun(pa) {
            let d = document.getElementById(pa).innerHTML;
            document.body.innerHTML = d;
            window.print();
        }
    </script>
</body>

</html>

base.html: In this html file we write the code of the table and some basic margin padding which we apply in some html files for that we joint some html file with base.html file

HTML
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{page}}</title>

    <style>
        table {
            width: 80%;
            margin: 20px auto;
            border-collapse: collapse;
        }

        th,
        td {
            padding: 10px;
            text-align: left;
            border: 1px solid #ccc;
        }

        th {
            background-color: #f2f2f2;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        tr:hover {
            background-color: #ddd;
        }
    </style>
</head>

<body>

    {% block start %}
    {% endblock %}

    <script>
        console.log('Hey Django')
    </script>
</body>

</html>

urls.py : below are the urls.py file those connect html file with views.py file

Python
from django.contrib import admin
from django.urls import path
from home import views

urlpatterns = [
    path('logout/', views.custom_logout, name="logout"),
    path('pdf/', views.pdf , name='pdf'),
    path('admin/', admin.site.urls),
    path('login/' , views.login_page, name='login'),
    path('register/', views.register_page, name='register'),
    
    path('', views.receipts, name='receipts'),
    path('update_receipt/<id>', views.update_receipt, name='update_receipt'),
    path('delete_receipt/<id>', views.delete_receipt, name='delete_receipt'),
]



admin.py:Here we are registering our models.

Python
from django.contrib import admin
from .models import *
from django.db.models import Sum

admin.site.register(Receipt) 

Deployement of the Project

Run these commands to apply the migrations:

python3 manage.py makemigrations
python3 manage.py migrate

Run the server with the help of following command:

python3 manage.py runserver

Output




update-base

base.html







Similar Reads

Image Gallery GUI using Django
Django, a powerful web framework for Python, makes it relatively easy to create a robust and user-friendly Image Gallery Graphical User Interface (GUI) for your web application. In this article, we'll guide you through the process of building an Image Gallery GUI using Django. Image Gallery GUI using DjangoAn Image Gallery GUI using Django is a web
4 min read
Python | Simple GUI calculator using Tkinter
Prerequisite: Tkinter Introduction, lambda function Python offers multiple options for developing a GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter outputs the fastest and easiest way to create GUI a
6 min read
Python | ToDo GUI Application using Tkinter
Prerequisites : Introduction to tkinter Python offers multiple options for developing GUI (Graphical User Interface). Out of all the GUI methods, Tkinter is the most commonly used method. In this article, we will learn how to create a ToDo GUI application using Tkinter, with a step-by-step guide. To create a tkinter : Importing the module – tkinter
5 min read
GUI chat application using Tkinter in Python
Chatbots are computer program that allows user to interact using input methods. The Application of chatbots is to interact with customers in big enterprises or companies and resolve their queries. Chatbots are mainly built for answering standard FAQs. The benefit of this type of system is that customer is no longer required to follow the same tradi
7 min read
Build a Basic Form GUI using CustomTkinter module in Python
In this article, we are going to learn how to build a simple form GUI using CustomTkinter in Python. CustomTkinter: It is an extension of the Tkinter module in python. It provides additional UI elements compared to Tkinter and they can be customized in various possible ways. For example, we can customize a button using CustomTkinter, we can make cu
7 min read
Build GUI Application Pencil Sketch from Photo in Python
In this article, we will cover how to convert images to watercolor sketches and pencil sketch Linux. Sketching and painting are used by artists of many disciplines to preserve ideas, recollections, and thoughts. Experiencing art from painting and sculpting to visiting an art museum—provides a variety of well-being advantages, including reduced stre
5 min read
Create a new Django project in Pycharm using Pycharm Terminal
PyCharm is one of the most popular Python-IDE developed by JetBrains used for performing scripting in Python language. PyCharm provides many useful features like Code completion and inspection, Debugging process, support for various programming frameworks such as Flask and Django, Package Management, etc. PyCharm provides various tools for producti
2 min read
Online Auction System Using Django
In this article, I am Going to Build an Online auction system Using Django. Physical auctions are limited by location but online auctions are accessible globally. It opens a broader range of buyers. It Can Connect the Seller, Buyer, and admin. Tools &amp; Technologies Used in this Project : Python Django Visual Studio CodeHTMLCSSJava ScriptImplemen
9 min read
How to Add Cart in a Web Page using Django?
Adding a shopping cart to a web page using Django is a crucial step when building an e-commerce website or any other application that involves online transactions. A shopping cart allows users to collect and manage items they want to purchase before proceeding to checkout. In this tutorial, we'll walk you through the process of creating a basic sho
6 min read
Blogging Platform using Django
Django, a high-level Python web framework, provides a powerful and flexible foundation to build upon. In this article, we will explore the process of building a blogging platform using Django, covering key concepts and steps along the way. Blogging Platform using DjangoA blogging platform using Django is a web application built with the Django fram
5 min read
E-commerce Product Catalog using Django
Django is an excellent choice for building a robust product catalog. Django, a high-level Python web framework, provides a solid foundation for creating feature-rich and scalable e-commerce websites. In this article, we will explore how to build an e-commerce product catalog using Django. E-commerce Product Catalog using DjangoTo install Django fol
4 min read
User Authentication System using Django
In this article, we will explore the process of creating a secure and efficient user authentication system in Django, a high-level Python web framework. Building upon Django's built-in capabilities, we will cover user registration, login, and more, providing you with the knowledge and tools necessary to enhance the security and usability of your we
10 min read
Download button to download data stored in the database using Django
In this article, We will guide you through the process of adding download buttons to retrieve data stored in the database using Django. Whether you are building a content management system, or an e-commerce system, allowing users to download data is a common and essential feature. Setting up the ProjectTo install Django follow these steps. Starting
4 min read
A Guide to Sending Data Using Cache in Django
In this article, we aim to comprehensively explore the functionality of sending data using cache in Django by providing a well-structured example implementation. Through this practical demonstration, we will delve into the intricacies of Django's caching system, ensuring that you gain a clear understanding of how to effectively utilize it for sendi
6 min read
Movie Recommendation System using Django
In this article, we will guide you through the process of creating a comprehensive Movie Recommendation System with the added functionality of user authentication. By incorporating a login system, users can create accounts, personalize their preferences, and access movie recommendations tailored to their tastes. This combination of user authenticat
8 min read
Blog Post Recommendation using Django
In this article, we will guide you through the creation of a blog post recommendation system using Django. Our article covers the integration of a user-friendly login system with a registration form, ensuring a seamless experience for your website visitors. Additionally, we have implemented a sophisticated search functionality that allows users to
10 min read
E-book Library using Django
In this article, we will demonstrate how to build an E-book Library using Django. We have incorporated the functionality of login and registration, ensuring that users must first log in and register to access and read books. Additionally, after logging in, users gain the capability to both read and add books. They are granted the privilege to updat
15+ min read
Count number of Faces from Image using Django
This article outlines the process of creating a face-counting feature in images through a Simple Django Web App. The project allows users to count the number of faces in uploaded images. Users simply need to upload an image, and the web app will automatically analyze the image to determine the count of faces. The result is then displayed on the web
6 min read
Task Pomodoro Timer using Django
This article explores the development of a Task Pomodoro Timer using Django. Users can set, stop, pause, and delete time intervals for tasks. To engage these features, signing up and logging in are mandatory. The timer offers customization options, allowing users to set seconds, hours, minutes, and categories for efficient time management. What is
12 min read
Recipe Meal Planner using Django
In this article, we will create the Recipe Meal Planner using Django step-by-step. Generally, we will implement the CRUD (Create, Read, Update, Delete) operations, allowing users to add the recipe name, day, and the recipe itself. Additionally, we will establish a login system, requiring users to register and log in before creating the recipe meal
9 min read
How to make an API-based carousel using Django?
In web development, carousels are widely used to showcase a dynamic set of images or content interactively. They prove popular for displaying products, portfolios, or any content that benefits from an engaging visual presentation. This tutorial will guide you through the process of creating an API-based carousel using Django—a robust web framework
10 min read
Online Resume Builder using Django
In this article, we will create an online resume builder web app. We will start by filling out a form with our personal information. Once the form is completed, we can generate a resume. Additionally, we will ensure the PDF generation quality to make the final result closely resemble the original resume in a professional and proper format. To use t
9 min read
Online Markdown Editor using Django
In this article, we will guide you through the process of creating an Online Markdown Editor using Django. This powerful tool allows users to seamlessly convert HTML code into a polished web output. By simply entering your HTML code into the input field, our Online Markdown Editor will instantly generate the corresponding output, making the process
5 min read
Calculate CGPA using Python Django
This article demonstrates how to build a CGPA calculator and display the results using Django. Initially, we establish a login system to ensure security. Users must first register for an account and then log in to access the calculator. After logging in, users can input their subject names, CGPA, and credits, essential information typically obtaine
11 min read
Build Calculator App Using Django
In this article, we will guide you through the process of creating a calculator app using Django. Our goal is to develop a versatile application capable of performing fundamental mathematical operations such as addition, subtraction, multiplication, and more. By the end of this tutorial, you will have a functional calculator that goes beyond the ba
3 min read
Tip Calculator Project Using Django
In this article, we will guide you through the process of creating a Tip Calculator Project using Django. This interactive project requires users to input the bill amount, the desired percentage for the tip, and the number of people splitting the bill. The application will then compute and display the Total Tip per person along with the Total Amoun
6 min read
Portfolio Showcase using Django
In this article, we will create a Portfolio Showcase using Django. For creating the portfolio showcase, we will use HTML and CSS for the frontend. Additionally, in this article, we will demonstrate how to create a form in which you need to submit some details. When you fill out the form and submit it, your portfolio will be displayed by updating th
8 min read
Build a To-Do application Using Django, React and Tailwind
This article will guide you in creating a To-Do application using React and Tailwind with the Django Framework. We’ll explore the integration of Django, React, and Tailwind, and go through the step-by-step process of implementing the To-Do application. What is a To-Do application?A To-Do application, also known as a task management or productivity
6 min read
Event Management System Using Python Django
In today's fast-paced world, businesses, schools, and groups need to organize events well. An Event Management System (EMS) makes planning and managing events easier. This article will explain the structure, important parts, and how to build a helpful Event Management System with Django. Event Management System using DjangoHere, we will create the
13 min read
Online Survey Tool using Django
In this article, we'll help you make an Online Survey Tool using Django. In our tool, only admin users can create forms to keep things in control and ensure quality. But, we've also made it so that authenticated users can fill out surveys. If you're not logged in, you can't submit a survey anonymously. Once you're logged in, you can see your survey
6 min read