- Postgres
- Django
- Pytest for python testing
- Edit the environement variables
touch .env
- Create env/dev with the following values filled
DEBUG=true
SECRET_KEY=[secret-key]
DJANGO_SETTINGS_MODULE=django_config.settings.local
ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
DATABASE_URL=postgres://dev:tester321@localhost:5432/cozyexchange
MAILGUN_API_KEY=[mailgun-api-key]
MAILGUN_DEFAULT_FROM_EMAIL=[email]
POSTGRES_PASSWORD=tester321
POSTGRES_USER=dev
POSTGRES_DB=exchange
EMAIL_USE_TLS=True
EMAIL_PORT=587
EMAIL_HOST=smtp.domain.com
[email protected]
EMAIL_HOST_PASSWORD=password
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
[email protected]
Finally, build and start the docker containers:
./bin/develop
./bin/django [command]
./bin/django createsuperuser
./bin/django makemigrations [app_name]