Configuring Script Handlers Google App Engine
Question: I am trying to make a simple application using Google App Engine.

Below is my code

`helloworld.py`

    
    
    print "hello"
    
    class helloworld():
            def myfunc(self):
                    st = "inside class"
                    return st
    

`test.py`

    
    
    import helloworld
    
    hw_object  = helloworld.helloworld()
    print  hw_object.myfunc()
    

`app.yaml`

    
    
    handlers:
    - url: /.*
      script: helloworld.py
    
    - url: /.*
      script: test.py
    

When I run my application via `http://localhost:10000` it prints only `hello`
whereas my expected output is `hello` and `inside class`.

My directory structure

    
    
    E:\helloworld>dir
    app.yaml       helloworld.py  test.py
    

I am pretty sure this has something to do with [Script
Handlers](http://code.google.com/appengine/docs/python/config/appconfig.html#Script_Handlers).So,
what is the correct way to define handlers and what is wrong in my way of
defining them.


Answer: When your first handler pattern `/.*` matches `http://localhost:10000`, the
remaining handlers are all ignored.

You can updated your `app.yaml`

    
    
    handlers:
    - url: /hello
      script: helloworld.py
    
    - url: /test
      script: test.py
    

And browse `http://localhost:10000/test`

