Skip to content

Commit

Permalink
Feature/management commands (#57)
Browse files Browse the repository at this point in the history
* Preparation for a command manager

* launching the parser through the command manager and writing to a file

* Moved constants to settings.py

* refactoring readme.md

* Update README.md

* flake8 mype errors

---------

Co-authored-by: Konstantin Raikhert <raikhert13@gmail.com>
  • Loading branch information
xxfeel and KonstantinRaikhert authored Dec 15, 2023
1 parent d89f8e5 commit 6b5e0e8
Show file tree
Hide file tree
Showing 8 changed files with 496 additions and 67 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,6 @@ cython_debug/
# Static
static/

# Protected project files
/adaptive_hockey_federation/parser/Именная заявка/
resourses/
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ help:
@echo " migrate - $(SHELL_GREEN)Команда для применения к базе данных готовых миграций.$(SHELL_NC)"
@echo " createsuperuser - $(SHELL_GREEN)Команда для создания супер-юзера.$(SHELL_NC)"
@echo " run - $(SHELL_GREEN)Команда для локального запуска проекта.$(SHELL_NC)"
@echo " fill-db - $(SHELL_GREEN)Команда для заполнения базы данных с помощью парсера.$(SHELL_NC)"
@echo " help - $(SHELL_GREEN)Команда вызова справки.$(SHELL_NC)"
@echo "$(SHELL_YELLOW)Для запуска исполнения команд используйте данные ключи совместно с командой 'make', например 'make init-app'."
@echo "При запуске команды 'make' без какого либо ключа, происходит вызов справки.$(SHELL_NC)"
Expand Down Expand Up @@ -56,4 +57,8 @@ run:
cd $(PROJECT_DIR) && $(DJANGO_RUN) runserver


# Заполнение базы данных с помощью парсера.
fill-db:
cd $(PROJECT_DIR) && $(DJANGO_RUN) fill-db

.PHONY: help
Loading

0 comments on commit 6b5e0e8

Please sign in to comment.