healthtech
Created by eslamdeveloper1@gmail.com Feel free to contact me for any questions.
Moved to settings.
Running type checks with mypy:
$ mypy brain_health
To run the tests, check your test coverage, and generate an HTML coverage report:
$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html
$ pytest
This app comes with Docker.
To run a project: there tow file for run docker local.yml and production.yml
docker-compose -f filename.yml up -d --build
To migrations or createsuperuser:
run command django
docker-compose -f filename.yml run --rm django python manage.py migrate , makemigrations , createsuperuser
This app comes with Celery Redis.
To run a celery worker:
celery -A config.celery_app worker -l info
Please note: For Celery's import magic to work, it is important where the celery commands are run. If you are in the same folder with manage.py, you should be right.
To run periodic tasks, you'll need to start the celery beat scheduler service. You can start it as a standalone process:
celery -A config.celery_app beat
or you can embed the beat service inside a worker with the -B
option (not recommended for production use):
celery -A config.celery_app worker -B -l info
See detailed cookiecutter-django Docker documentation.