Deploy Django on Apache?

前端 未结 3 1119
醉梦人生
醉梦人生 2021-01-28 15:02

I create project using Django 1.8. now ,I want deploy it to server.when I run this command in Ubuntu every thing working find.

python manage.py runserver
         


        
3条回答
  •  梦谈多话
    2021-01-28 15:22

    As I said in the comments, you're not doing anything to add your project to the PYTHONPATH so that the WSGI app can actually find it.

    It seems from your directory structure that you're using a virtualenv; you need to activate that either within the .wsgi file or in the Apache configuration itself. The Django docs recommend the latter.

提交回复
热议问题