Skip to content

erfanghorbanee/Django-Ecommerce

Repository files navigation

Django-Ecommerce

ezgif com-gif-maker

Code style: black Imports: isort License: MIT

An e-commerce website using the following tech stacks: Python - Django - PostgreSQL - JavaScript - Bootstrap

How run the project?

Clone the repository

git clone https://github.com/erfanghorbanee/Django-Ecommerce.git
cd django-ecommerce

Create a virtualenv and activate it

python3 -m venv venv
. venv/bin/activate

Or on Windows cmd

> py -3 -m venv venv
> venv\Scripts\activate.bat

Install the requirements

pip3 install -r requirements.txt

In settings.py, set up the database

for this project i used postgress, you can see the following settings below :

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'db_name',
        'USER': 'db_user',
        'PASSWORD': 'db_user_password',
        'HOST': 'localhost',
        'PORT': '',
    }
}

Run makemigrations and migrate

python3 manage.py makemigrations
python3 manage.py migrate

Run the tests

python3 manage.py test

Run the development server

python3 manage.py runserver

Open http://127.0.0.1:8000 in your browser.

About

An e-commerce website using the following tech stacks: Python - Django - PostgreSQL - JavaScript - Bootstrap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published