4

uwsgi.ini configuration for python apps

view full story
linux-howto

http://serverfault.com – So I am experimenting with uWSGI and liking it a lot. I have a question regarding the use of its .ini file though. Is it possible to calculate values for its .ini configuration parameter dynamically? For instance, for the "chdir" value in my "uwsgi.ini" file, I have [uwsgi] socket=127.0.0.1:3034 chdir=/Users/calvin/work/myproject virtualenv=/Users/calvin/.virtualenvs/myproject module=django.core.handlers.wsgi:WSGIHandler() env= DJANGO_SETTINGS_MODULE=myproject.settings master=True pidfile=/tmp/myproject-master.pid vacuum=True max-requests=5000 daemonize=/var/log/uwsgi/myproject.log It's (HowTos)