Introduction:
This is a CRUD (Create, Read, Update, and Delete) project in Django. It is designed to demonstrate the basic functionality of a web application using Django framework. In this project, users can perform basic CRUD operations on a database of items.
This is how our application does look like:
These paths will help you in accessing the different panels and pages of the application like, /addandshow/ and /admin/
Getting Started:
To run this project on your local machine, follow the instructions below:
-
Clone the project to your local machine using the command: git clone https://github.com/yourusername/crud-django.git
-
Navigate to the project directory: cd crud-django
-
Create a virtual environment: python -m venv env
-
Activate the virtual environment: source env/bin/activate
-
Install the required packages: pip install -r requirements.txt
-
Create a local database by running the following commands: python manage.py makemigrations, python manage.py migrate(just after the makemigrationns command)
-
Create a superuser: python manage.py createsuperuser
-
Start the development server: python manage.py runserver
-
Access the application by navigating to http://localhost:8000 in your web browser.
-
Functionality:
This application allows users to:
- Create items by providing a title and description.
- View a list of all items in the database.
- Update an existing item's title or description.
- Delete an existing item.
Technology Stack:
- Python
- Django
- HTML
- CSS
- Bootstrap
Conclusion: This is a simple CRUD project that can be used as a starting point for a larger web application using the Django framework. It demonstrates basic functionality and can be expanded upon to include more features and functionality.