Answer the question
In order to leave comments, you need to log in
How to add .env variables to uwsgi?
I use .env file to hide database settings in Django project. On the local network through pipenv, all the norms are pulled up, tell me how to add this data to the server in uwsgi. Now error
settings.DATABASES is improperly configured. Please supply the NAME value.
Answer the question
In order to leave comments, you need to log in
a question from the series "what color to paint the window so that it doesn't blow"
.env is for setting up the python working environment
and you need operating system variables
on linux this is set via the console like this:
on windows via the consoleSETX CATALINA_HOME='/opt/catalina'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question