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
Post a Comment