I'm really new to Python and GAE. I'm setting up a basic CRUD app for some test data and am trying to get some routing for the admin pages going. I'd like to use the same page for creating and editing an object. So basically I want:
/admin/edit/<id>
where <id>
is optional and /admin/edit
will route to the same page. I tried adding <id:\w*>
to the route which then allowed me to hit the page without supplying an id, but then when I supplied the id, I received a 404. Then I tried <id:\w+>
and got a 404 with and without an id. I'm not having much luck.
Can anyone help me with what regex I need for this?