Mailings management microservice for Tomoru.
Install dependencies using pip:
pip install -r requirements.txt
or Poetry:
poetry install
Poetry will install dev-dependencies as well. So use that if you are planning to contribute.
SECRET_KEY
. You might want to use something like Djecrety or Python'ssecrets
module to generate a secret key.DEBUG
. A boolean value. Defaults toFalse
.
Run the server:
gunicorn config.wsgi
and run task processing:
python manage.py process_tasks
You might want to activate shell first with:
poetry shell
Run tests using pytest
:
pytest --cov=.
Note that for the build to be successful it has to have no flake8
errors and have >= 90% test coverage.