Hi
I need to get a parameter from the url which is the id and do not know how.
When my url is like this: http://localhost:8080/test/view/20519364e38774a71190edb28c
I do: url(r'^view/(?P<id>\w+)', 'rest.views.view'),
And everything ok.
Now I have a url like this: http://localhost:8080/test/view/<GridFSProxy:20519a3a6c8774a717dc59a84a>
that the error looks like this: http://localhost:8080/test/view/%3CGridFSProxy:%20519a3a6c8774a717dc59a84a%3E
With a url so, how can I get only the number (20519a3a6c8774a717dc59a84a)?
I'm trying this:
url(r'^view/.*Proxy:%(?P<id>\w+)%.*', 'rest.views.view'),
But it is giving, anyone know what I'm doing wrong?
Someone can help me?
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment