python 2.7 - Error in deploying my code to Google App Engine -



python 2.7 - Error in deploying my code to Google App Engine -

my simple application fetches contents given url working fine on local server, on deployment gives error. check here

the application consists of 2 files including here

compare-hatke.py

from google.appengine.api import urlfetch url = "http://www.google.com/" result = urlfetch.fetch(url) if result.status_code == 200: print(result.content)

app.yaml

application: compare-hatke version: 3 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: compare-hatke.app

log - version 1

traceback (most recent phone call last): file "/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 196, in handle handler = _config_handle.add_wsgi_middleware(self._loadhandler()) file "/python27_runtime/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 269, in _loadhandler raise importerror('%s has no attribute %s' % (handler, name)) importerror: <module 'compare-hatke' '/base/data/home/apps/s~compare-hatke/1.365150810067162164/compare-hatke.pyc'> has no attribute app

now, clueless why not working. suggestion or help crucial.

thanks !

google-app-engine python-2.7

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -