- Firstly, you need to make a local environment and activate it.
python -m venv venv source venv/bin/activate
- Install packages.
pip install -r requirements.txt
- Create a ".env" file at the root of the directory with params.
DEBUG=True or False SECRET_KEY='see in the Internet' # ALL SETTINGS FOR !POSTGRESQL! DB_USER='your postgres user' DB_PASS='your password for user' DB_NAME='your name of db' DB_HOST='127.0.0.1' or 'localhost' DB_PORT='5432' REDIS_HOST='127.0.0.1' REDIS_PORT='6379'
- After that, do migrate to your DB.
python manage.py migrate
- Finally, you can start the project with third-party tools due commands.
python manage.py runserver or gunicorn main.wsgi --reload celery -A main.celery:app worker -l INFO celery -A main.celery:app flower -l INFO
As well as, you can start tests in the project
python manage.py test <'name_folder'> ( without (),<> and '' )
- Create a ".env" file at the root of the directory with params.
DEBUG=False SECRET_KEY='see in the Internet' # ALL SETTINGS FOR !POSTGRESQL! DB_USER='your postgres user' DB_PASS='your password for user' DB_NAME='your name of db' DB_HOST='db' DB_PORT='5432' REDIS_HOST='redis' REDIS_PORT='6379'
- Do command.
docker compose up -d --build
- Let's check site's pages...
Some pictures
- Profile
- Shopping basket
- Ordering form
- Orders
- Details of order