を失敗し、私はそうのようなファイル構造を持っている:Google App Engineの(パイソン) - インポート
...
- url: /test
script: something/test.py
test.py
輸入models.py
app.yaml
something/
__init__.py
models.py
test.py
を私はapp.yaml
でtests.py
を実行するように設定URLを持っています
http://myapp.appspot.com/test/
に移動しようとすると、次のエラーが表示されます。
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
そして、私はダッシュボード上のログを確認するとき、私は次のようなエラーが発生した参照:私は適切にファイルをインポートするにはどうすればよい
<type 'exceptions.ImportError'>: No module named models
?
from something.models import *
この:あなたのようなトップ何かを書くことができますtest.py内部
import something.models as models
を持っている必要があります - 私たちはあなたが欠落している可能性があり、何かを見つけるかもしれません。 – Glycerine
SDKでアプリを実行するとどうなりますか? – SingleNegationElimination