OK, I got it configured with app.yaml file

application: helloworld
version: 1
runtime: python
api_version: 1

handlers:
- url: /.*
  script: code.py


but when i try to run it says app has no cgirun attribute.. i am using
latest web.py dev 0.3 version. how to fix this?

Traceback (most recent call last):
  File "/tmp/google_appengine/google/appengine/tools/dev_appserver.py",
line 2245, in _HandleRequest
    base_env_dict=env_dict)
  File "/tmp/google_appengine/google/appengine/tools/dev_appserver.py",
line 334, in Dispatch
    base_env_dict=base_env_dict)
  File "/tmp/google_appengine/google/appengine/tools/dev_appserver.py",
line 1743, in Dispatch
    self._module_dict)
  File "/tmp/google_appengine/google/appengine/tools/dev_appserver.py",
line 1654, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "/tmp/google_appengine/google/appengine/tools/dev_appserver.py",
line 1555, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "/tmp/google_appengine/test/code.py", line 37, in <module>
    main = app.cgirun()
AttributeError: application instance has no attribute 'cgirun'


On Tue, Apr 8, 2008 at 5:40 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 7, 2008 at 10:55 PM, Aaron Swartz <[EMAIL PROTECTED]> wrote:
>  >  OK, my first web.py app is up at:
>  >  http://webpy.appspot.com/
>  really cool!!
>
>
>
>  >  Click for the source code. (It's 0.3, but I expect 0.2 would work fine
>  >  the same way.)
>  how do you start /configure this app with web.py? is a config file needed ?
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to