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\w+)', 'rest.views.view'),*
And everything ok.
Now I have a url like this: *
http://localhost:8080/test/view
gfsp = GridFSProxy()
gfsp.variable
Where variable is the variable name that contains the data storing the
number you want yo retrieve. I think it can solve your problem.
2013/5/15 Hélio Miranda :
> So I mean the client side in my application I have to be able to access only
> the id, then just se
So I mean the client side in my application I have to be able to access
only the id, then just send the id and not ?
Could not sending as it is in django to extract just the number of the url?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
Your view is returning a GridFSProxy object, not a class/method
variable. You've to call a instance of your GridFSProxy, so you'll can
access the relative data.
2013/5/15 Hélio Miranda :
> Hi
>
> I need to get a parameter from the url and do not know how.
> If my url looks like this:
> http://loca
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\w+)', 'rest.views.view'),*
And everything ok.
Now I have a url like this: *http://localhost:8080/test/view/*
t
5 matches
Mail list logo