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

pathlib doesn't go to the good path #25

Open
goatgitt opened this issue Feb 28, 2022 · 1 comment
Open

pathlib doesn't go to the good path #25

goatgitt opened this issue Feb 28, 2022 · 1 comment

Comments

@goatgitt
Copy link

I have this error: django.core.exceptions.ImproperlyConfigured: Set the DJANGO_SECRET_KEY environment variable
My .env file is next to .env.exemple.
Do you think we have to switch to os lib?

@c-v-ya
Copy link
Owner

c-v-ya commented Feb 28, 2022

I don't think so. You just need to export envs, it's in the article: export $(cat .env | xargs). Also django-environ works very well just need to tweak a bit, I guess. Maybe add the line loading envs from a file.

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

No branches or pull requests

2 participants