<p>我的文件结构如下:</p>
<pre><code>app.yaml
something/
__init__.py
models.py
test.py
</code></pre>
<p>我已将URL设置为在<code>app.yaml</code>中运行<code>tests.py</code>:</p>
^{pr2}$
<p><code>test.py</code>进口<code>models.py</code></p>
<p>当我试图导航到<code>http://myapp.appspot.com/test/</code>时,我得到以下错误:</p>
<blockquote>
<p>Error: Server Error
The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error message and the > query that caused it</p>
</blockquote>
<p>当我检查仪表板上的日志时,我看到发生了以下错误:</p>
<pre><code><type 'exceptions.ImportError'>: No module named models
</code></pre>
<p>如何正确导入文件?在</p>
<p>干杯</p>
<p>皮特</p>