After thinking about this a bit more, I realized that you might not
need an __init__.py file in admin/. An __init__.py would be required
if you wanted to import from that directory as a package, but when you
define a handler in app.yaml, the script doesn't need to be imported,
it is called directly.

Cheers,

Jeff

On Oct 24, 10:20 am, Jeff S <[EMAIL PROTECTED]> wrote:
> Hi Chris,
>
> Does your admin directory contain an __init__.py file? Are you using
> the webapp framework? Another possible cause that the script isn't run
> might be that the request handler isn't mapped to the URL.  If so, you
> might need something like this:
>
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
>
> class YourEditUserPage(webapp.RequestHandler):
>   ...
>
> application = webapp.WSGIApplication(
>                                      [('/admin/users',
> YourEditUserPage)])
>
> def main():
>   run_wsgi_app(application)
>
> if __name__ == "__main__":
>   main()
>
> Thank you,
>
> Jeff
>
> On Oct 23, 7:20 pm, Chris <[EMAIL PROTECTED]> wrote:
>
>
>
> > How would you map the URL /admin/users to the script admin/
> > editusers.py?
>
> > I tried adding something like this to my app.yaml, but all I get is a
> > blank document
>
> > - url: /admin/users
> >   script: admin/editusers.py
> >   login: admin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to