擅长:python、mysql、java
<p>默认情况下,Eclipse使用模块的静态分析。<code>flask.ext</code>动态生成导入列表。要使用Python shell强制进行动态分析,请将<code>flask.ext</code>添加到强制内置列表。</p>
<p>转到<code>Preferences -> PyDev -> Interpreters -> Python Interpreter</code>。选择您的解释器,转到<code>Forced Builtins</code>选项卡。单击<code>New...</code>,然后输入<code>flask.ext</code>。</p>
<p>这需要PyDev通过shell强制分析模块。</p>
<p>有关详细信息,请参见<a href="http://pydev.org/manual_101_interpreter.html" rel="noreferrer"><strong>PyDev manual</strong></a>。</p>