Looks like you omitted the subdirectory for finworksheet.py. This ought to work:
- url: /finance/worksheet.* script: finance/finworksheet.py I use a slightly different regex to do REST-style URLs: - url: /finance/worksheet(/.*)? script: finance/finworksheet.py This gives you a narrower match: 1. /finance/worksheet = match 2. /finance/worksheet/ = match 3. /finance/worksheet/dec2008 = match 4. /finance/worksheets_are_dumb = non-match Then, in finworksheet.py: class WorksheetHandler(webapp.RequestHandler): def get(self, id): self.response.out.write(id) application = webapp.WSGIApplication([ ('/finance/worksheet/?(.*)', WorksheetHandler), ], debug=True) This will give you an empty string for #1 and #2, and "dec2008" for #3. On Dec 21, 11:35 am, Vince <vincent.zaff...@gmail.com> wrote: > Thanks Alexander for your reply!! > > Unfortunately that didn't solve my problem. I am still getting a 404 > when I added > > - url: /finance/worksheet.* > script: finworksheet.py > > Thanks > > On Dec 21, 2:14 am, Alexander Kojevnikov <alexan...@kojevnikov.com> > wrote: > > > Replace > > > - url: /finance/worksheet/.* > > > with > > > - url: /finance/worksheet.* > > > The URL you are trying to access doesn't have the trailing slash, but > > your script handler requires it. > > > --www.muspy.com > > > On Dec 21, 3:14 pm, Vince <vincent.zaff...@gmail.com> wrote: > > > > Having a hard time with wrapping my head around the script handlers. > > > I am trying to navigate to the urlhttp://localhost:8080/finance/worksheet > > > and I keep getting a 404 error. Based off the directory structure and > > > handler do you see what I am doing wrong? Thanks in advance for your > > > help! > > > > Directory Structure: > > > --root > > > --finance > > > --finworksheet.py > > > --templates > > > -- finance.html > > > > My app.yaml is like this: > > > handlers: > > > - url: /static/js > > > static_dir: static/js > > > > - url: /static/stylesheets > > > static_dir: static/stylesheets > > > > - url: /finance/worksheet/.* > > > script: finance/finworksheet.py > > > > - url: /.* > > > script: MainPage.py --~--~---------~--~----~------------~-------~--~----~ 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-appengine@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 -~----------~----~----~----~------~----~------~--~---