First of all, you must have python and postgresql installed and to continue ...
$ git clone https://github.com/mmdtoorani/online-shop.git
$ cd online-shop
$ python3 -m venv venv
$ . venv/bin/activate
> py -3 -m venv venv
> venv\Scripts\activate.bat
$ cd online-shop
$ pip3 install -r requirements.txt
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': '',
}
}
python manage.py makemigrations
python manage.py migrate
python3 manage.py runserver
Open http://127.0.0.1:8000 in your browser.