Answer the question
In order to leave comments, you need to log in
Why is the environment variable not exported to the project?
Hello!
On VDS c debin 8, a Django project is deployed, a variable (export foo=bar) is added to the environment.
Activating the virtual environment and running manage.py shell followed by print os.getenv('foo') prints the value of the variable.
But in the project itself, the same command returns none.
Because of what it can be?
Answer the question
In order to leave comments, you need to log in
In the configuration of your uwsgi application, set the necessary environment variables:
[uwsgi]
env = foo=bar
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question