Video Demo:
Features
- Multi Vendor E-commerce – customers can register for an account and be able to upload and sell their products.
- Fully functional Cart System
- User Authentication and Account management.
- Create Product, Edit Product, and Manage Products
- Bulk upload product images, delete product images, and Set Features image of a product,
- User products and Catalog filtering which includes: Per Page Display, Search, Ordering, Sorting and Pagination.
- Word class inline image slider with zooming and panning functionality.
- WYSIWYG rich text editor for writing content
- Responsive web design – utilizes latest version of Bootstrap which is currently V4.2.
- Most actions are processed via AJAX for better performance.
Pages Included:
- Home
- Cart
- Checkout
- Login
- Register
- Account
- Add Product
- Edit Product
- Manage Products
- Product List
- Single Product View
Not Included:
- Payment Gateway Integration
How do I setup my environment?
- Download and install the latest version of python (version 3+) from here: https://www.python.org/downloads/
- For Mac users: Python version 2.7+ is installed by default, so to use python version 3, you will have to use these commands:
- python3 <command>
- pip3 <command>
- For Mac users: Python version 2.7+ is installed by default, so to use python version 3, you will have to use these commands:
- Install django using pip:
- pip install Django==3.1.5 or get the latest version here: https://www.djangoproject.com/download/
- Verify your installation, run the following command:
- python -m django –version
How to setup and run the ecommerce module?
Before performing the steps bellow, make sure that you have the latest version of Python and Django installed in your computer.
- Download then extract the zip file into your computer.
- Open your command prompt then navigate to the directory where you have extracted the files.
- Install Pillow:
- pip install Pillow
- Generate a migration file to install the tables from the ecommerce module:
- python manage.py makemigrations
- Execute the new migration file:
- python manage.py migrate
- Create a superuser:
- python manage.py createsuperuser
- We’re all set, now let’s run the server:
- python manage.py runserver
- Finally, visit http://127.0.0.1:8000/ecommerce on your favorite browser.
How to integrate the ecommerce module to an existing django project?
- Download the zip file. Extract the files then copy the ecommerce folder inside your existing project where the manage.py resides.
- Link the the “ecommerce” module to your project by updating the “INSTALLED_APPS” tuple in the settings.py file of your project:
-
INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'ecommerce', # We added this line )
-
- Generate a migration file to install the tables from the ecommerce module:
- python manage.py makemigrations
- Execute the new migration file:
- python manage.py migrate
- If you don’t have a superuser, you will be prompted to create one.
- Run: python manage.py createsuperuser to create a superuser manually.
- We’re all set, let’s run the server:
- python manage.py runserver
- Finally, visit http://127.0.0.1:8000/ecommerce on your favorite browser.
Use MySQL Server instead of Sqlite3?
- Go to PROJECT_NAME/PROJECT_NAME/settings.py under “DATABASES” array, replace contents with the following:
-
'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'python-ecommerce', # make sure you have already created this database 'USER': 'root', 'PASSWORD': '', 'HOST': 'localhost', 'PORT': '3306', 'OPTIONS': { 'autocommit': True, }, }
-
- Install mysqlclient:
- pip install mysqlclient
- if you’re getting an error while installing mysqlclient, you can try the following:
- get the latest mysqlclient here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
- then install it using pip:
- pip install C:\Users\Carl\Downloads\mysqlclient-1.4.4-cp37-cp37m-win32.whl
- if you’re getting an error while installing mysqlclient, you can try the following:
- pip install mysqlclient
- Run migration:
- python manage.py migrate
- You have now successfully connected mySQL to the project, you may now start the server:
- python manage.py runserver