I suspect that the problem may be pattern used for the books URL.

Instead of
*- url: /books/**
try
*- url: /books/.**


On 12 October 2013 04:06, Mark Tyers <markty...@gmail.com> wrote:

> I am trying to create a simple web with URIs like:
>
> xxx.appspot.com/books/book/42
>
> I would like the book code to be in its own file and came up with this:
>
> app.yaml
>
> *application: xxx*
> *version: 1*
> *runtime: python27*
> *api_version: 1*
> *threadsafe: yes*
> *
> *
> *handlers:*
> *- url: /favicon\.ico*
> *  static_files: favicon.ico*
> *  upload: favicon\.ico*
> *  *
> *- url: /books/**
> *  script: books.app*
> *
> *
> *- url: .**
> *  script: main.application*
> *
> *
> *libraries:*
> *- name: webapp2*
> *  version: "2.5.2"*
>
> I then created books.py
>
> *import webapp2*
> *
> *
> *class BookHandler(webapp2.RequestHandler):*
> *    def get(self):*
> *        self.response.write('BookHandler')*
> *
> *
> *app = webapp2.WSGIApplication([*
> *    ('/.*/book', BookHandler)*
> *], debug=True)*
>
> But when I try the URI I get a blank screen. Can anyone explain what I am
> getting wrong?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To post to this group, send email to google-appengine@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-appengine.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to