2013-11-21 6 views
0

Unity Web Player 앱을 Google App Engine에 업로드하려고하는데 dev_appserver.py를 사용하여 서버를 시작할 때 로컬 호스트 페이지를 탐색하는 동안 내부 서버 오류가 발생했습니다 오류 서버는 오류를 범 또는 요청 된 작업dev_appserver.py를 실행하는 동안 내부 서버 오류가 발생했습니다.

Traceback (most recent call last): 
    File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__ 
    rv = self.handle_exception(request, response, e) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__ 
    rv = self.router.dispatch(request, response) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher 
    return route.handler_adapter(request, response) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__ 
    return handler.dispatch() 
    File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch 
    return self.handle_exception(e, self.app.debug) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch 
    return method(*args, **kwargs) 
    File "/base/data/home/apps/s~gcdc2013-space3d/1.371793060412129756/main.py", line 27, in get 
    self.response.out.write(template.render(path, template_values)) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/webapp/template.py", line 89, in render 
    t = _load_internal_django(template_path, debug) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/ext/webapp/template.py", line 163, in _load_internal_django 
    template = django.template.loader.get_template(file_name) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py", line 157, in get_template 
    template, origin = find_template(template_name) 
    File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/_internal/django/template/loader.py", line 138, in find_template 
    raise TemplateDoesNotExist(name) 
TemplateDoesNotExist: WebPlayer.html 

내 애플리케이션 제목 콘텐츠

application: gcdc2013-space3d 
version: 1 
runtime: python27 
api_version: 1 
threadsafe: yes 

handlers: 
- url: /favicon\.ico 
    static_files: favicon.ico 
    upload: favicon\.ico 

- url: /WebPlayer\.unity3d 
    static_files: WebPlayer/WebPlayer.unity3d 
    upload: WebPlayer/WebPlayer\.unity3d 

- url: .* 
    script: main.app 

libraries: 
- name: webapp2 
    version: "2.5.2" 

main.py 콘텐츠

012를 수행하기 불가능하다 들일 3,516,
from google.appengine.ext.webapp import template 
import webapp2 
import os 

class MainHandler(webapp2.RequestHandler): 
    def get(self): 
     template_values = { 
      'greetings': 'greetings', 
      } 
     path = os.path.join('WebPlayer', 'WebPlayer.html') 
     self.response.out.write(template.render(path, template_values)) 

app = webapp2.WSGIApplication([ 
    ('/', MainHandler) 
], debug=True) 

도움 구글 데이터 저장소 인덱스으로 업데이트하지 않았기 때문에 그것은 아마

+0

이 IIRC 당신이라는 디렉토리 템플릿에서 template.html이 있어야합니다. 그것이 webapp2/jinja2가 기본으로 설정되어 있으므로 시험해 볼 가치가 있습니다. –

답변

관련 문제