Skip to content

Commit

Permalink
Moved constants to settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xxfeel committed Dec 14, 2023
1 parent 65a520f commit 5c0d858
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,8 @@
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

RESOURSES_ROOT = os.path.join(BASE_DIR, 'resourses')
PARSER_MAIN = os.path.join(BASE_DIR, 'parser/parser.py')

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
AUTH_USER_MODEL = 'users.User'
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import os
import subprocess

from django.core.management.base import BaseCommand

from adaptive_hockey_federation.settings import BASE_DIR

RESOURSES_ROOT = os.path.join(BASE_DIR, 'resourses')
PARSER_MAIN = os.path.join(BASE_DIR, 'parser/parser.py')
from adaptive_hockey_federation.settings import PARSER_MAIN, RESOURSES_ROOT


class Command(BaseCommand):
help = "Описание команды"
help = "Запуск парсера офисных документов."

def handle(self, *args, **options):
run_parser = subprocess.getoutput(
Expand Down

0 comments on commit 5c0d858

Please sign in to comment.