DEV Community

Vijay Thapa
Vijay Thapa

Posted on • Edited on

Simple Multi-Vendor Website with Django [Download]

This is a simple MultiVendor e-commerce website built with Django (Python) and Stripe is added as payment processor.

In this website, Vendors (Stores) can register and add their products.

And Users can visit the product and order by paying with Debit/Credit Card (Stripe is Used).

Then Vendor gets the email notification about the order and should deliver the product to the customer based on the address details.

Free Software Development Courses

Features of this Project

A. Admin Users Can

  1. Manage Category (Add, Update, Filter and Delete)
  2. Manage Products (Add, Update, Filter and Delete)
  3. Manage Users (Update, Filter and Delete)
  4. Manage Orders (View and Process)

B. Vendors Can

  1. Add Products
  2. Update Profile
  3. Gets Notification When an Order is made by Users
  4. Get Orders and Manage Them

C. Users Can Can

  1. Add to Cart
  2. Pay with Debit/Credit Card and Order
  3. While Checkout, User should give the address to deliver
  4. Get Email Notification about the confirmation of the order

Donate

PayPal

Buy me a Coffee ☕️

Donate by wire transfer: E-Mail at donate@vijaythapa.com for wire transfer details.

How to Install and Run this project?

Pre-Requisites:

  1. Install Git Version Control
    [ https://git-scm.com/ ]

  2. Install Python Latest Version
    [ https://www.python.org/downloads/ ]

  3. Install Pip (Package Manager)
    [ https://pip.pypa.io/en/stable/installing/ ]

Alternative to Pip is Homebrew

Installation

1. Create a Folder where you want to save the project

2. Create a Virtual Environment and Activate

Install Virtual Environment First

$  pip install virtualenv
Enter fullscreen mode Exit fullscreen mode

Create Virtual Environment

For Windows

$  python -m venv venv
Enter fullscreen mode Exit fullscreen mode

For Mac

$  python3 -m venv venv
Enter fullscreen mode Exit fullscreen mode

Activate Virtual Environment

For Windows

$  source venv/scripts/activate
Enter fullscreen mode Exit fullscreen mode

For Mac

$  source venv/bin/activate
Enter fullscreen mode Exit fullscreen mode

3. Clone this project

$  git clone https://github.com/vijaythapa333/simple-multivendor-site.git
Enter fullscreen mode Exit fullscreen mode

Then, Enter the project

$  cd simple-multivendor-site
Enter fullscreen mode Exit fullscreen mode

4. Install Requirements from 'requirements.txt'

$  pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

5. Add the hosts

  • Got to settings.py file
  • Then, On allowed hosts, Add [‘*’].
ALLOWED_HOSTS = ['*']
Enter fullscreen mode Exit fullscreen mode

No need to change on Mac.

6. Now Run Server

Command for PC:

$ python manage.py runserver
Enter fullscreen mode Exit fullscreen mode

Command for Mac:

$ python3 manage.py runserver
Enter fullscreen mode Exit fullscreen mode

7. Login Credentials

Create Super User (Admin)

Command for PC:

$  python manage.py createsuperuser
Enter fullscreen mode Exit fullscreen mode

Command for MAC:

$  python3 manage.py createsuperuser
Enter fullscreen mode Exit fullscreen mode

Then Add Email, Username and Password

For Sponsor or Projects Enquiry

  1. Email - hi@vijaythapa.com
  2. LinkedIn - vijaythapa

Download from Here

GitHub logo vijaythapa333 / simple-multivendor-site

Simple Multi Vendor E-Commerce Website using Python Django.

Also Check Other Django Projects

Top comments (1)

Collapse
 
smith_stan_990afcd6350d15 profile image
Smith Stan

i faced this error each time i click to login as vendor:

RelatedObjectDoesNotExist at /vendor/vendor-admin/
User has no vendor.
Request Method: GET
Request URL: 127.0.0.1:8000/vendor/vendor-admin/
Django Version: 3.2.4
Exception Type: RelatedObjectDoesNotExist
Exception Value:

User has no vendor.
Exception Location: C:\Users\wise\AppData\Local\Programs\Python\Python38\lib\site-packages\django\db\models\fields\related_descriptors.py, line 421, in get
Python Executable: C:\Users\wise\AppData\Local\Programs\Python\Python38\python.exe
Python Version: 3.8.9