Okay, great! How can I add more URL triggers?

On Jun 19, 4:19 pm, "Brent Pedersen" <[EMAIL PROTECTED]> wrote:
> On Thu, Jun 19, 2008 at 3:09 PM, toasterfun <[EMAIL PROTECTED]> wrote:
>
> > Hello, I'm having an issue with the url tuple at the top of the
> > application:
>
> > urls = (
> >    '/index/(.*)', 'indexpage'
> > )
>
> > What is the (.*) for? Because my index page doesn't really need any
> > dynamic content, I wish I could just do:
>
> >    '/index/', 'indexpage'
>
> > But I get an error:http://img209.imageshack.us/my.php?image=errorqh7.png
>
> > What do I do?
>
> > Also, how do I add other URLs? I want to add an about page, so my
> > immediate instinct is to do this:
>
> > urls = (
> >    '/index/(.*)', 'indexpage',
> >    '/about/', 'aboutpage'
> > )
>
> > but that doesn't work. What do I do?
>
> > And one last question. Right now, I'm accessing my script by going to
> >http://localhost/test.wsgi/. How do I get rid of the filename so I can
> > do this:
> >http://localhost/index
> > and in the future...
> >http://example.org/index
> >http://example.org/about
>
> > Thanks in advance!
>
> re: example.com/index vs. example.com/index.wsgi
> see the end of this page:http://webpy.org/install
>
> re: arguments when you use
> '/index/(.*)', 'indexpage'
>
> your indexpage.GET should 2 arguments, self, and the stuff from (.*)
> to use /index/ change indexpage.GET to only expect self then use:
>
> '/index.*', 'indexpage'
>
> without the capture.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to