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 python-dotenv #2

Merged
merged 1 commit into from Sep 16, 2019
Merged

Add python-dotenv #2

merged 1 commit into from Sep 16, 2019

Conversation

honeydev
Copy link
Contributor

@astynax astynax merged commit 7976c72 into Hexlet:master Sep 16, 2019
@@ -1,5 +1,9 @@
import os

from dotenv import load_dotenv

load_dotenv()
Copy link
Contributor

Choose a reason for hiding this comment

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

вообще такие вещи помещаются в файл с запуском, например, в mange.py. Но на время разработки норм

from dotenv import load_dotenv

load_dotenv()

Copy link
Contributor

@Safintim Safintim Sep 16, 2019

Choose a reason for hiding this comment

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

Может добавишь разграничение на продакшн и локальную БД? Также с env

Copy link
Contributor

Choose a reason for hiding this comment

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

Можно!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants