The Definitive Django Learning Platform.
This project was created almost two years ago. Since then, there is a newer version of the project which you can find here
This is a very simple e-commerce website built with Django.
The website displays products. Users can add and remove products to/from their cart while also specifying the quantity of each item. They can then enter their address and choose Stripe to handle the payment processing.
To get this project up and running you should start by having Python installed on your computer. It's advised you create a virtual environment to store your projects dependencies separately. You can install virtualenv with
pip install virtualenv
Clone or download this repository and open it in your editor of choice. In a terminal (mac/linux) or windows terminal, run the following command in the base directory of this project
virtualenv env
That will create a new folder env
in your project directory. Next activate it with this command on mac/linux:
source env/bin/active
Then install the project dependencies with
pip install -r requirements.txt
Now you can run the project with this command
python manage.py runserver
Note if you want payments to work you will need to enter your own Stripe API keys into the .env
file in the settings files.
This project is part of a series on YouTube that teaches how to build an e-commerce website with Django.
If you'd like to support this project and all the other open source work on this organization, you can use the following options
Sponsor through GitHub Sponsors. On GitHub, this repository shows a button where you can Sponsor the contributors.
If you're learning Django and want to take your next step to become a professional Django developer, consider signing up on JustDjango.