An open API service indexing awesome lists of open source software.

https://github.com/thecodewithabhi/django-crud-app

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
https://github.com/thecodewithabhi/django-crud-app

crud django mvc mysql programming pyhon3 python python-app sqlite sqlite3 webapp

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# πŸ› οΈ 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](#features)
- [Technologies Used](#technologies-used)
- [Project Structure](#project-structure)
- [Installation](#installation)
- [Usage](#usage)
- [Admin Panel](#admin-panel)
- [Available Routes](#available-routes)
- [Screenshots](#screenshots)
- [Author](#author)
- [License](#license)

---

## βœ… 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:

```bash
# 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:
```bash
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](https://github.com/user-attachments/assets/3ec36aa8-c467-490a-b583-bb515018dd92)
![snap-2](https://github.com/user-attachments/assets/1e47c470-56ff-4656-995d-f6e5ff82ef20)
![snap-1](https://github.com/user-attachments/assets/2a2892b1-5533-4a0f-91f3-1aa409e6164e)