wsgi.py 不见了, manage.py 在那里
wsgi.py is missing and manage.py is there instead
所以我试图遵循这个:http://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html
它说 "If the file /home/foobar/myproject/myproject/wsgi.py (or whatever you have called your project) does not exist, you are very probably using an old (< 1.4) version of Django. In such a case you need a little bit more configuration:"
但我使用的是 Django 的 1.10.5 版本,而不是 wsgi.py 它有 manage.py ......我应该怎么做才能完成教程中的那一步?我应该只使用 manage.py 吗?
请注意,您引用的uwsgi文档在路径中有.../myproject/myproject/...
,也就是说,它们有两次myproject
。事实上,在最近的 Django 版本中,当你启动一个项目时,manage.py
被放置在 top-level 目录中(通常类似于 /home/foobar/myproject
),而 wsgi.py
在 myproject
中的子目录。所以 manage.py
和 wsgi.py
的位置类似于以下内容:
/home/foobar/myproject/manage.py
/home/foobar/myproject/myproject/wsgi.py
所以我试图遵循这个:http://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html
它说 "If the file /home/foobar/myproject/myproject/wsgi.py (or whatever you have called your project) does not exist, you are very probably using an old (< 1.4) version of Django. In such a case you need a little bit more configuration:"
但我使用的是 Django 的 1.10.5 版本,而不是 wsgi.py 它有 manage.py ......我应该怎么做才能完成教程中的那一步?我应该只使用 manage.py 吗?
请注意,您引用的uwsgi文档在路径中有.../myproject/myproject/...
,也就是说,它们有两次myproject
。事实上,在最近的 Django 版本中,当你启动一个项目时,manage.py
被放置在 top-level 目录中(通常类似于 /home/foobar/myproject
),而 wsgi.py
在 myproject
中的子目录。所以 manage.py
和 wsgi.py
的位置类似于以下内容:
/home/foobar/myproject/manage.py
/home/foobar/myproject/myproject/wsgi.py