-
Locally, no environment variable is required.
-
oc_letting_site.settings.local.py is active to avoid Sentry logs and environment variables.
python -m pip install pip==23.3.2
pip install poetry==1.7.1
poetry install
poetry run python manage.py migrate
poetry run python manage.py runserver
docker compose version
docker compose up
docker compose down
-
oc_letting_site.settings.local.py is active to avoid Sentry logs.
-
Set these environment variables on the project settings :
- RENDER_DEPLOY_HOOK_URL (acquired from Render Web Service)
- DOCKERHUB_USERNAME (acquired from Docker hub)
- DOCKERHUB_PASSWORD (acquired from Docker hub)
-
oc_letting_site.settings.production.py is active !
-
Set these environment variables on the Web Service :
- SECRET_KEY (generated on Render Web Service),
- PYTHON_VERSION=3.10.11
- DJANGO_SETTINGS_MODULE=oc_lettings_site.settings.production
- DATABASE_URL (acquired from Render PostgreSQL)
- SENTRY_DSN (acquired from Sentry)
- ADMIN_PASSWORD (chosen on Render Web Service)