lazytest.py
========
import framework
class TestHome(framework.RequestHandler):

  def get(self):
     self.response.out.write('<h1>Hello Lazy World</h1>')

testHomeHandler = TestHome()


part of main.py:
============
import framework
application = framework.WSGIRouter()
application.connect('/',
framework.WSGILazyLoader('lazytest.testHomeHandler'))

def main():
     run_wsgi_app(application)

if __name__ == '__main__':
  main()


Getting this error:
=============
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py", line 3206, in _HandleRequest
    self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py", line 3149, in _Dispatch
    base_env_dict=env_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py", line 525, in Dispatch
    base_env_dict=base_env_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py", line 2402, in Dispatch
    self._module_dict)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py", line 2312, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine
\tools\dev_appserver.py", line 2208, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "c:\GoogleAppEngine\olexe3\main.py", line 426, in <module>
    application = framework.WSGIRouter()
AttributeError: 'module' object has no attribute 'WSGIRouter'


When I read Nick's sample, I'm confused if framework was the name of
his module, or if he was referring to a real framwork such as WebApp.

Neal

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to