problem when trying to define uri's

4 views
Skip to first unread message

Saulo

unread,
Sep 6, 2010, 7:13:57 AM9/6/10
to Django REST interface
Hi folks,

I'm trying to get all tags(strings) from a object. Both (tag and
object) are defined in my Django app model. So, when I typed at
urls.py the uri's pattern r'^json/object/(?P<obj_id>\d+)/tags$' and
tried to run the server, I got the folowwing message : invalid literal
for int() with base 10: '3/tags', for example, when a have to get
third object in my model. What do you think it's happening? I think
the correct way would be parsing only the integer 3 without tha last
part /tags....

Obs: sorry, my english isn't well

So, thanks a million!
Reply all
Reply to author
Forward
0 new messages