How to set mod_wsgi for apache and django?

后端 未结 3 1303
清酒与你
清酒与你 2021-01-31 23:54

I know that there are already a lot of information on this topic, but they are quite clumsy, not so simple and expressive. Could anyone explain me how to use django

3条回答
  •  别跟我提以往
    2021-02-01 00:28

    I recently setup my application on Django, and this guide was all that I needed. http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/

    So basically, the process is

    1. Setup another server to serve static files (Ex. Nginx) on Port 80.
    2. Setup apache on some other port.
    3. Run django application on apache using mod_wsgi
    4. Reverseproxy all non-static/non-media files to apache+mod_wsgi/django

    Let me know on which step you are stuck.

提交回复
热议问题