This web application is my attempt to create an internet shop prototype.
- Login/Register/Logout system.
- Simple and nice Bootstrap 5 design.
- Models for products with the ability to add pictures.
- Working cart class that uses the session key to keep the cart alive during the session life period.
- Dynamic change of product stock quantity and availability when the order is confirmed.
- Working form to collect user delivery info that stores it into the order model.
- Each order has a unique hash and is connected to the user with a foreign key.
- Clone the repository:
git clone https://github.com/yeghor/Django-Internet-Shop.git
cd Learning-Log-Django- Create a virtual enviroment:
python -m venv venv
# On Windows
venv\Scripts\activate
# On MacOS/Linux
source venv/bin/activate- Install the dependencies:
pip install -r requirements.txt- Set up the database:
python manage.py migrate- Create a superuser:
python manage.py createsuperuser- Run the development server:
python manage.py runserver- Navigate to http://127.0.0.1:8000 in your web browser.
- Sign up for an account and log in.
- Start making orders and testing the application!