Giter VIP home page Giter VIP logo

employee-management-system-using-fbv's Introduction

Django CRUD Operations with Pagination

Welcome to the Django CRUD (Create, Read, Update, Delete) project with pagination! This project is a web application built using Django that demonstrates how to perform CRUD operations on a database using function-based views with pagination. It's designed to help you understand how to create, retrieve, update, and delete records while efficiently managing large datasets through pagination.

Table of Contents

Features

  • Create: Add new records to the database.
  • Read: Retrieve and display records from the database with pagination.
  • Update: Modify existing records in the database.
  • Delete: Remove records from the database.
  • Pagination: Efficiently manage and display a large number of records by dividing them into multiple pages.

Prerequisites

Before you begin, make sure you have the following prerequisites:

  • Python 3.x installed on your system.
  • Django framework installed.
  • A text editor or integrated development environment (IDE).

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/yourusername/django-crud-pagination.git
  1. Create a Django superuser:
python manage.py createsuperuser
  1. Apply the database migrations:
python manage.py makemigrations
python manage.py migrate
  1. Start the development server:
python manage.py runserver
  1. Access the admin interface at http://localhost:8000/admin/ and log in with your superuser credentials.

Usage

  1. Open your web browser and go to http://localhost:8000 to access the CRUD application.

  2. Click on the "Create" button to add new records to the database.

  3. Use the pagination controls to navigate between pages when viewing records.

  4. Click on the "Read" button to retrieve and display records with the option to update or delete them.

  5. Choose the "Update" option to modify existing records in the database.

  6. Select "Delete" to remove records from the database.

Preview

When no record is present for any Employee in the database. image

Adding a new Employee Detail image

Employee Detail image

Update Employee image image

Pagination image image

Delete Employee (Deleted User1) image

employee-management-system-using-fbv's People

Contributors

ysinghal555 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.