James, You are right. I am able to get past that issue. The next stumbling block is with
null value in column "address_id" violates not-null constraint DETAIL: Failing row contains (10, Likes, null, null). Here is my curl curl -H "Authorization: Bearer $usertoken" -H "Content-Type: application/json" -X POST -d '{"address":"XYZ","prefs":"Likes"}' http://${endpoint}/addPrefs How do I pass the address name so that it gets translated to an id in the background. - Shekar -- 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+unsubscr...@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. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8b031b31-3b95-43cd-bcd7-cb46b315703d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.