Use a python variable in uwsgi's emperor.ini -


i using uwsgi run flask app. index.ini looks this:

[uwsgi] vassal_name = %n  chdir = *a specific dir* module = project.web.%(vassal_name) callable = app  http-socket = :8080 

the chdir variable hard coded, makes sense deployment, local development nuissance change. want make variable.

i have settings management set in this example taken 2 scoops of django, book. prefer set chdir variable in local settings.py.

how can variable local settings.py file , use in ini file?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -