QuickShop is a full-featured e-commerce web application built with Django. It offers a user-friendly interface for browsing, searching, and purchasing products. The project includes features like product listings, product details, cart management, user registration, and authentication.
- User registration and authentication
- Product listings by categories
- Product detail pages with add-to-cart functionality
- Shopping cart management
- Search functionality
- Responsive design with Bootstrap
- Admin interface for managing products and categories
- Static and media file management
- Python 3.8+
- Django 5.0
- MySQL
- Bootstrap 5
- JavaScript (ES6)
- HTML5 & CSS3
To get a local copy up and running, follow these simple steps.
- Python 3.8 or higher
- MySQL database
- Git
- Clone the repo
git clone https://github.com/your_username/e_commerce_project.git
- Change to the project directory
cd e_commerce_project
- Create and activate a virtual environment
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
- Install the required packages
pip install -r requirements.txt
- Set up the database
python manage.py migrate
- Create a superuser for the admin interface
python manage.py createsuperuser
- Run the development server
python manage.py runserver
Update the DATABASES
setting in e_commerce_project/settings.py
with your MySQL database credentials.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'quickshop',
'USER': 'your_username',
'PASSWORD': 'your_password',
'HOST': 'localhost',
'PORT': '3306',
}
}
e_commerce_project/
├── e_commerce_project/
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ ├── wsgi.py
├── shop/
│ ├── migrations/
│ ├── templates/
│ ├── static/
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── models.py
│ ├── urls.py
│ ├── views.py
├── static/
│ ├── css/
│ ├── images/
├── templates/
│ ├── shop/
│ ├── base.html
├── manage.py
├── requirements.txt
Start the Django development server:
python manage.py runserver
Open your browser and navigate to http://127.0.0.1:8000/
to see the application in action.
To access the admin interface, go to http://127.0.0.1:8000/admin
and log in with the superuser credentials created earlier.
- Log in to the admin interface.
- Add categories and products via the respective sections.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/your-feature
) - Commit your Changes (
git commit -m 'Add some feature'
) - Push to the Branch (
git push origin feature/your-feature
) - Open a Pull Request