mirror of
https://github.com/task-17-lct/backend.git
synced 2024-11-23 12:43:43 +03:00
not really known
.envs | ||
compose | ||
config | ||
locale | ||
logs | ||
parsers | ||
passfinder | ||
.dockerignore | ||
.editorconfig | ||
.env.template | ||
.gitattributes | ||
.gitignore | ||
.pre-commit-config.yaml | ||
.pylintrc | ||
data4.json | ||
local.yml | ||
manage.py | ||
poetry.lock | ||
production.yml | ||
pyproject.toml | ||
pytest.ini | ||
README.md | ||
requirements.txt | ||
setup.cfg |
Pass Finder
Логика проекта и структура данных
Basic Commands
Load data
be sure to create .env file in top directory(clone .env.template)
$ ./manage.py migrate
$ ./manage.py loaddata data.json
data.json can be downloaded here: https://akarpov.ru/media/passfinder/data.json
Runserver
$ ./manage.py runserver_plus
Type checks
Running type checks with mypy:
$ mypy passfinder
Running tests with pytest
$ pytest
Setting Up Your Users
-
To create a superuser account, use this command:
$ python manage.py createsuperuser
Celery
This app comes with Celery.
To run a celery worker:
celery -A config.celery_app worker -B -l warning
made with cookiecutter-django