How to avoid putting environment variables into multiple places with Django, nginx and uWSGI?

后端 未结 3 1544
你的背包
你的背包 2021-02-04 09:42

I am trying to configure nginx+uWSGI to serve my Django application.

When I put environment variables into myapp_uwsgi.ini:



        
3条回答
  •  忘掉有多难
    2021-02-04 09:48

    Another approach is using configuration management systems such as Salt or Ansible.

    With them one can create Jinja templates for both uWSGI and Django with {{ variables }} defined in one place.

提交回复
热议问题