Get url parameters
Hi
I need to get a parameter from the url and do not know how.
If my url looks like this: http://localhost:8080/test/view/20519364e38774a71190edb28c
I did like this: 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: 20519364e38774a71190edb28c>
that the error looks like this: http://localhost:8080/test/view/%3CGridFSProxy:%20519364e38774a71190edb28c%3E
With a url so, how can I get only the number (20519364e38774a71190edb28c)?
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home