擅长:python、mysql、java
<p>这不是用gunicorn引用WSGI文件的方式。见<a href="http://gunicorn-docs.readthedocs.org/en/19.1.1/run.html#commands" rel="noreferrer">the docs</a>:</p>
<blockquote>
<p>The module name can be a full dotted path. The variable name refers to a WSGI callable that should be found in the specified module.</p>
</blockquote>
<p>因此,如果wsgi.py文件位于GenericRestaurantSystem/wsgi.py中,那么您的命令应该是</p>
<pre><code>gunicorn -b 127.0.0.1:8000 GenericRestaurantSystem.wsgi:application
</code></pre>