Last Updated: May 28, 2018
·
34K
· pykler

Multiple ENV vars with UWSGI

To send in multiple environment variables using the uwsgi ini, you just need to pass in multiple env parameters for example:

[uwsgi]
plugin = python27
enable-threads = true
single-interpreter = true
virtualenv = /path/to/current
env = NEW_RELIC_CONFIG_FILE=newrelic.ini
env = NEW_RELIC_ENVIRONMENT=staging
env = DJANGO_SETTINGS_MODULE=leadsift.settings.staging
module = leadsift.wsgi:application

2 Responses
Add your response

thx. this snippet helps me a lot!

over 1 year ago ·

Thanks, that also did it for me :)!

over 1 year ago ·