Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring SERVICES_DIR in code #83

Open
ArtemBalandin81 opened this issue Jul 5, 2024 · 0 comments
Open

Refactoring SERVICES_DIR in code #83

ArtemBalandin81 opened this issue Jul 5, 2024 · 0 comments
Assignees
Labels
refactoring Refactorings and optimizations

Comments

@ArtemBalandin81
Copy link
Owner

ArtemBalandin81 commented Jul 5, 2024

Why?

При работе с файлами практически везде используется комбинация:

SERVICES_DIR = Path(__file__).resolve().parent.parent.parent.parent
FILES_DIR = SERVICES_DIR.joinpath(settings.FILES_DOWNLOAD_DIR)

Кажется она очень зря везде дублируется и вероятно ее можно перенести в настройки без потерь

How To Do?

  • Подумать, можно ли перенести SERVICES_DIR и FILES_DIR без потерь в настройки проекта, а оттуда их импортировать в код!
@ArtemBalandin81 ArtemBalandin81 added the refactoring Refactorings and optimizations label Jul 5, 2024
@ArtemBalandin81 ArtemBalandin81 self-assigned this Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Refactorings and optimizations
Projects
None yet
Development

No branches or pull requests

1 participant