Rodrigo Villalba Zayas
Rodrigo Villalba Zayas

Reputation: 5616

Google App Engine module's routing is not working

I have a demo application written in Python and running on Google App Engine. This app has 3 modules. I added a configuration file to configure module's routing but it's not working. This file called dispatch.yaml looks like this:

application: dotted-lexicon-638

dispatch:
  - url: "dotted-lexicon-638.appspot.com/"
    module: default

  - url: "dotted-lexicon-638.appspot.com/list*"
    module: list

  - url: "dotted-lexicon-638.appspot.com/logs*"
    module: logs

I deployed this file using "appcfg.py update_dispatch project_dir" command

if you go to "http://list.dotted-lexicon-638.appspot.com" and "http://logs.dotted-lexicon-638.appspot.com" you can see that both modules are working.

Am I missing something?

Upvotes: 0

Views: 139

Answers (1)

Greg
Greg

Reputation: 10360

When you use a path for module routing, it doesn't mean that path maps to the root of the module it just determines which module gets a chance to handle the request. Unless you have code in your list module handling /list, then it will 404.

Upvotes: 1

Related Questions