/online-shop

Ecommerce - online shop developed by Django and Postgresql

Primary LanguagePython

online-shop

How run the project?

First of all, you must have python and postgresql installed and to continue ...

Clone the repository :
$ git clone https://github.com/mmdtoorani/online-shop.git
$ cd online-shop
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 :
$ cd online-shop
$ 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': '',
    }
}

makemigrations :

python manage.py makemigrations
python manage.py migrate
Run the development server :
python3 manage.py runserver

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