On Thu, Jan 21, 2010 at 8:32 AM, hyn <[email protected]> wrote:
> What I'm trying to do is very simple... point /users/registration/.*
> to users.py.
> In users.py, I have:
>
> webapp.WSGIApplication([('/', RegistrationHandler)], debug = True)

This doesn't match the actual URL that should be processed by your
users.py script. I think it should read

webapp.WSGIApplication([('/users/registration/.*',
RegistrationHandler)], debug = True)

In app.yaml you define which script handles an URL. But since app.yaml
doesn't know anything about your script - it could even be a simple
CGI script - you need to "redefine" the URL pattern when using
webapp's routing.

Andi

>
> And my app.yaml:
>
> handlers:
> - url: /static/stylesheets
>  static_dir: static/stylesheets
>
> - url: /users/registration/.*
>  script: users.py
>
> - url: /
>  script: main.py
>
> - url: .*
>  static_files: static/pages/not_found.html
>  upload: static/pages/not_found.html
>
> Accessing /users/registration/ results in 404.
> It doesn't actually show not_found.html, it just shows blank, with a
> 404 in the GAE launcher log.
> If I change '/' to '/.*' in the parameter to webapp.WSGIApplication(),
> the page loads. But I only want '/' to map to RegistrationHandler.
>
> --
> 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.
>
>
>
>
-- 
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