This is an online store project built with Python using the Django framework. The project includes basic functionality for managing products, categories, orders, and users.
- Product Catalog : View a list of products with filtering by categories.
- User Authentication : Registration, login, and profile management.
- Shopping Cart and Checkout : Add products to the cart and place orders.
- Admin Panel : Manage products, categories, and orders via Django Admin
- Product Search : Search for products by name or description.
- Backend : Django (version 4.2.7).
- Database : PostgreSQL (via psycopg2), with SQLite supported for development.
- Frontend : HTML, CSS, JavaScript (Bootstrap may be used for styling).
- Debugging : Configured with django-debug-toolbar for easier development.
- Other Tools
- Pillow for image processing.
- Colorama for colored console output.
Prerequisites
- Install Python 3.8+.
- Install PostgreSQL (if you want to use it instead of SQLite).
- Install Git.
-
Clone the Repository
git clone https://github.com/Online-store.git cd Online-store -
Create a Virtual Environment
python -m venv venv source venv/bin/activate # For Linux/MacOS venv\Scripts\activate # For Windows -
Install Dependencies
pip install -r requirements.txt -
Apply Migrations
python manage.py migrate -
Create a Superuser (for Admin Access)
python manage.py createsuperuser -
Run the Server
python manage.py runserver
Admin Panel
You can manage products, categories, and orders via the Django Admin panel:
- Go to: http://127.0.0.1:8000/admin .
- Enter the superuser login and password.
Docker (Optional)
-
Ensure you have Docker and Docker Compose installed.
-
Build and run the containers:
docker-compose up --build