擅长:python、mysql、java
<p>烧瓶配置与gunicorn的完全不同。在<a href="http://flask.pocoo.org/docs/config/#configuring-from-files" rel="noreferrer">the Flask documentation on config files</a>之后,一个好的解决方案是将源更改为:</p>
<pre><code>app = Flask(__name__)
app.config.from_pyfile('config.py')
</code></pre>
<p>在config.py中:</p>
<pre><code>DEBUG = True
</code></pre>