Re: How to get object id from database?

2019-05-25 Thread anchal agarwal
Thanks . It worked !! On 26-May-2019 5:05 am, "Rob Gmail" wrote: > Look at the new Boston.com he did a tutorial on exactly this issue > > Rob > 203-671-6514 > Sent from my mobile device, please excuse the typos. > > On May 25, 2019, at 7:25 PM, Yoo wrote: > > Maybe try album__id (two underscores

Re: How to get object id from database?

2019-05-25 Thread Rob Gmail
Look at the new Boston.com he did a tutorial on exactly this issue Rob 203-671-6514 Sent from my mobile device, please excuse the typos. > On May 25, 2019, at 7:25 PM, Yoo wrote: > > Maybe try album__id (two underscores)? Or try album_title as defined in the > Album model. I also advise not

Re: How to get object id from database?

2019-05-25 Thread Yoo
Maybe try album__id (two underscores)? Or try album_title as defined in the Album model. I also advise not to expose your primary key in the URL. If the above did not work, check Django documentation: https://docs.djangoproject.com/en/2.2/topics/http/urls/ On Saturday, May 25, 2019 at 2:46:58

How to get object id from database?

2019-05-25 Thread anchal agarwal
I am currently working on a django project in which there is a music app. The models of this app contains Albums and Songs. I want to return the http response when the django receives a url as /music/712 , here 712 is the object id. Please help me out in resolving the issue.Thanks in advance. Here