Additional information on https://www.python.org/downloads/
mkdir ecommerce_project && cd ecommerce_project
git clone https://github.com/DenisDanchyk/ecommerce_project.git
cd ecommerce_project
python -m venv venv
venv\scripts\activate.bat
pip install -r requirements.txt
cd core
In core/settings.py
add your Google account credentials to EMAIL_HOST_USER
and EMAIL_HOST_PASSWORD
. If you don't have Google account - create it. Alternitavely, you can use other SMTP host.
Instructions, how to set Django SMTP described
here.
# TODO:
SECRET_KEY = '1234567890'
DEBUG = True
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = 587
# TODO:
EMAIL_HOST_USER = ""
# TODO:
EMAIL_HOST_PASSWORD = ""
Go to psql shell
postgres=# CREATE DATABASE demo;
And set in `core/settings.py`
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'HOST': 'localhost',
'PORT': '5432',
# TODO:
'NAME': "",
'USER': "",
'PASSWORD': ""
}
}
manage.py cities_light
python manage.py makemigrations
python manage.py migrate
python manage.py runserver