install docker and docker compose before running
set your own environment variables in Dockerfile
Commands:
docker compose up --build
if you want run Just run django
- set database from postgres to sqlite
- set this environment varilabes
export PYTHONPATH=shopping_app export DJANGO_SETTINGS_MODULE=config.settings.local # for porduction use prod
- create .env file like below
SECRET_KEY = 'YOUR_SECRET_KEY DEBUG = False #email config EMAIL_USE_TLS = True EMAIL_HOST_USER = your_email@gmail.com EMAIL_HOST_PASSWORD = your_password EMAIL_PORT = 587 # payment gateway config MERCHANT_ID = "YOUR_MERCHANT_ID" #if you want use sqlite database ignore it POSTGRES_USER = 'YOUR_POSTGRES_USER' POSTGRES_PASSWORD = "YOUR_POSTGRES_PASSWORD" POSTGRES_DB = "YOUR_POSTGRES_DB" POSTGRES_PORT = 5432