Skip to content

Commit

Permalink
Preparation for a command manager
Browse files Browse the repository at this point in the history
  • Loading branch information
xxfeel committed Dec 11, 2023
1 parent cbed5d4 commit d5e54c9
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 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
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'django.contrib.staticfiles',
'main.apps.MainConfig',
'users.apps.UsersConfig',
'core.apps.CoreConfig',
]

MIDDLEWARE = [
Expand Down
5 changes: 5 additions & 0 deletions adaptive_hockey_federation/core/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class CoreConfig(AppConfig):
name = 'core'
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

from django.core.management.base import BaseCommand


class Command(BaseCommand):
help = "Описание команды"

def handle(self, *args, **options):
return 'Я заготовка'

0 comments on commit d5e54c9

Please sign in to comment.