Your first url contain ".py"!  You don't want .py in the url, do you?
That would only match the url http://something.appspot.com/main2,py,
which doesn't sound very likely.

The second one should be a catch-all that invokes main.py.  I use -
url: /.* but I think yours should work.  Maybe it's invoking your
main.py and the fault lies with main.py.


On Dec 7, 5:42 pm, Robert Kluin <robert.kl...@gmail.com> wrote:
> I actually do not have anything directly mapped like your "main2.py," but I
> do have "subsystem" handlers like:
> - url: /user/.*
>   secure: always
>   script: /user/main.py
>
> Have you tried:
> - url: main2.py
>  script: /main2.py
>
> My catchall looks like:
> - url: .*
>   script: main.py
>   secure: optional
>
> Robert
>
> On Sun, Dec 6, 2009 at 8:30 PM, ustunozgur <ustunoz...@gmail.com> wrote:
> > I have the following app.yaml file :
>
> > - url: /main2.py
> >  script: /main2.py
> > - url: /.*
> >  script: main.py
>
> > I want to process URL/main2.py with main2.py, and all the other
> > requests URL/blabla with main.py.
>
> > I can't get either working, I get 404 errors in the log in both
> > scenarios.
>
> > 1. Shouldn't the /. pattern match anything except main2.py and process
> > everything?
> > 2. Doesn't /main2.py match main2.py in the root directory?
>
> > Am I doing something wrong? I have checked the line endings in
> > app.yaml by the way, and they are Unix line endings.
>
> > Thanks,
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appeng...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> > .
> > 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 google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to