Click for the source code. (It's 0.3, but I expect 0.2 would work fine
the same way.)
Doesn't seem to be any trouble using web.py at all.
I have to say, I am pretty impressed with what I've read so far. Now
I have to wait for an invite.
Thanks,
--
# Curt Micol
narf; LIMIT 10 for the last 5 notes?
but looks nice :) very simple. I like ^^
> 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 ?
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'
import google.appengine.ext.utils
main = google.appengine.ext.utils.run_wsgi_app(web.wsgifunc(web.webpyfunc(urls,
globals()))
On Tue, Apr 8, 2008 at 8:47 AM, Aaron Swartz <m...@aaronsw.com> wrote:
>
Yeah, I noticed the same thing.
I added the template to the source code for those who are curious:
Dude, I'm this close to banning the next person who asks about Cheetah
on this list. This is not the Cheetah users support group.
dev_appserver.py .
this doesnt work for .23
def session_mw(app):
return FacebookWSGIMiddleware(app, config_fb,
facebook_class=facebookstuff.Facebook)
import google.appengine.ext.webapp.util
main = google.appengine.ext.webapp.util.run_wsgi_app(web.wsgifunc(web.webpyfunc(urls,
globals
(), session_mw)))
and how do i do it for 0.3?
thanks