93jakg
Last Updated: May 28, 2018
·
22.13K
· 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

16849

thx. this snippet helps me a lot!

over 1 year ago ·
29396

Thanks, that also did it for me :)!

11 months ago ·