nginx serving Django in a subdirectory through uWSGI

前端 未结 5 1994
别跟我提以往
别跟我提以往 2021-02-19 15:48

I have already gone through some previous threads: How do I set subdirectory in nginx with Django how to deploy django under a suburl behind nginx Serving flask app on subdirect

5条回答
  •  离开以前
    2021-02-19 16:28

    Eventually gave up on trying to do this "neatly".

    The final solution was just to make a settings variable that I prefixed to the static_url and projects urls.py file. No SCRIPT_NAME or anything complicated on the nginx side.

提交回复
热议问题