Skip to content

A lightweight and well-structured CRUD (Create, Read, Update, Delete) application built with Django. This project demonstrates fundamental database operations using Django’s models, views, and templates, making it an excellent starting point for beginners exploring with django

Notifications You must be signed in to change notification settings

thecodewithabhi/django-crud-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ Django CRUD Application

A simple and clean CRUD (Create, Read, Update, Delete) web application built using Django framework. This project demonstrates the basic functionality of a typical CRUD system with Django's MVT (Model-View-Template) architecture. Ideal for beginners looking to learn Django by building practical applications.


📌 Table of Contents


✅ Features

  • Add new Member
  • View list of records
  • Update records
  • Delete records
  • Django Admin Interface
  • Form validations
  • Clean and responsive UI (optional with Bootstrap)

🧰 Technologies Used

  • Python 3.x
  • Django 4.x
  • SQLite (default database)
  • HTML, CSS
  • Bootstrap (optional for styling)

📁 Project Structure

crud_project/ ├── crud_app/ │ ├── admin.py │ ├── apps.py │ ├── forms.py │ ├── models.py │ ├── tests.py │ ├── urls.py │ ├── views.py │ ├── templates/ │ │ └── crud_app/ │ │ ├── base.html │ │ ├── list.html │ │ ├── form.html │ └── static/ ├── crud_project/ │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── db.sqlite3 ├── manage.py └── requirements.txt


⚙️ Installation

Step-by-step instructions:

# Clone the repository git clone https://github.com/thecodewithabhi/django-crud-app.git cd django-crud-app # Create virtual environment python -m venv env source env/bin/activate # On Windows use: env\Scripts\activate # Install dependencies pip install -r requirements.txt # Apply database migrations python manage.py makemigrations python manage.py migrate # Run the development server python manage.py runserver

Visit: http://127.0.0.1:8000

🧪 Usage Navigate to the homepage to see the list of records. Use the Add, Edit, and Delete buttons to perform respective operations. All fields include basic Django form validation.

🔐 Admin Panel Create a superuser:

python manage.py createsuperuser

Visit http://127.0.0.1:8000/admin and log in. Route Description / Homepage /members/ View Members /editmember// Edit a record by ID /deletemember// Delete a record by ID /admin/ Django admin panel

👨‍💻 Author Your Abhishek Shakya GitHub: @thecodewithabhi Email: abhishakya@codewithabhi.in

🖼️ Screenshots snap-3 snap-2 snap-1

About

A lightweight and well-structured CRUD (Create, Read, Update, Delete) application built with Django. This project demonstrates fundamental database operations using Django’s models, views, and templates, making it an excellent starting point for beginners exploring with django

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published