On Sunday, December 7, 2014 5:04:39 PM UTC+1, Massimo Di Pierro wrote: > > this should work: > > routes_in = { /(?P<name>[\w+]+\-[\w-]+)':'/app/default/r/$name' } > what format is this? parameter-based?
> On Sunday, 7 December 2014 03:32:45 UTC-6, Encompass solutions wrote: >> >> I want to have a URL like this: http://127.0.0.1:8000/34D7-638C >> Obviously the base URL changes. >> I want to make it so I can check if there is a "-" in the string, if so, >> then I know to run a certian method with that string as the argument. Is >> this possible with routing? >> right now I have to do: http://base_example.com/default/r/34D7-638C and >> I should be able to take out the default/r/ I am pretty sure if it, just >> don't know how. >> >> BR, >> Jason Brower >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.