Skip to content

A simple CRUD (Create, Read, Update, Delete) application built using Django framework. This project demonstrates basic CRUD operations on a database using Django's ORM (Object-Relational Mapping). It includes functionality to create, retrieve, update, and delete records from a database through a user-friendly web interface.

License

Notifications You must be signed in to change notification settings

anfiquehussain/Django-crud_private

Repository files navigation

Django CRUD Application

A simple CRUD (Create, Read, Update, Delete) application built using the Django framework. This project demonstrates basic CRUD operations on a database using Django's ORM (Object-Relational Mapping).

Features

  • Create new records
  • Retrieve and display existing records
  • Update existing records
  • Delete records

Installation

Clone the Repository

git clone https://github.com/anfiquehussain/Django-crud.git
cd Django-crud

Create and Activate a Virtual Environment

Windows

python -m venv venv
venv\Scripts\activate

Linux/MacOS

python3 -m venv venv
source venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Apply Migrations

python manage.py migrate

Run the Development Server

python manage.py runserver

Open your browser and go to http://127.0.0.1:8000/ to see the application in action.

Usage

  • Home Page: View all records.
  • Add Record: Use the form to create a new record.
  • Edit Record: Click on a record to update its details.
  • Delete Record: Click on a record to delete it.

Project Structure

├───crud_app
│   ├───migrations
│   │   └───__pycache__
│   ├───templates
│   │   └───crud_app
│   └───__pycache__
├───crud_project
│   └───__pycache__
├───media
│   └───products
  • crud_app/: Main Django application directory.
    • migrations/: Database migrations.
    • templates/: HTML templates for the application.
      • crud_app/: Templates specific to crud_app.
    • __pycache__/: Compiled Python files.
  • crud_project/: Project configuration directory.
    • __pycache__/: Compiled Python files.
  • media/: Directory for storing media files.
    • products/: Directory for product images and files.

Contributing

Contributions are welcome! Please fork the repository and create a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

Contact

For any queries or further assistance, please contact Anfique Hussain V.

anfiquehussain anfique_hv anfique-hussain-v-aa8841290 16822116 100022489001636 anfique_hv @anfiquehussain1

About

A simple CRUD (Create, Read, Update, Delete) application built using Django framework. This project demonstrates basic CRUD operations on a database using Django's ORM (Object-Relational Mapping). It includes functionality to create, retrieve, update, and delete records from a database through a user-friendly web interface.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages