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

add environ variables, env.example #16

Merged
merged 4 commits into from
May 2, 2024
Merged

add environ variables, env.example #16

merged 4 commits into from
May 2, 2024

Conversation

Mitsushidu
Copy link
Contributor

Добавил переменные в .env файл и получил их с помощью environ. Так же добавил файл env.example.

@Mitsushidu Mitsushidu added the enhancement New feature or request label May 1, 2024
@@ -0,0 +1,12 @@
POSTGRES_DB=postgres_db
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Подпиши комментариями пожалуйста, какие настройки для чего

from pathlib import Path

import environ
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У нас poetry в проекте, добавь это пакет в зависимости

@Mitsushidu
Copy link
Contributor Author

Добавил комменты в env.example, добавил django-environ в зависимости poetry

@KonstantinRaikhert
Copy link
Member

Добавил комменты в env.example, добавил django-environ в зависимости poetry

Здорово! Еще конфликты нужно решить. Сейчас судя по всему в 3 файлах

@KonstantinRaikhert KonstantinRaikhert merged commit 9071de7 into dev May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Реализовать работу с переменными окружения
2 participants