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.
- Features
- Technologies Used
- Project Structure
- Installation
- Usage
- Admin Panel
- Available Routes
- Screenshots
- Author
- License
- Add new Member
- View list of records
- Update records
- Delete records
- Django Admin Interface
- Form validations
- Clean and responsive UI (optional with Bootstrap)
- Python 3.x
- Django 4.x
- SQLite (default database)
- HTML, CSS
- Bootstrap (optional for styling)
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
# 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