Re: API rest for https://docs.djangoproject.com/en/dev/intro/tutorial01/ help

2014-02-21 Thread Camilo Torres
On Thursday, February 20, 2014 6:23:27 PM UTC-4:30, Antonio Villavicencio wrote: > > I am trying just to do an API REST with the project of: > https://docs.djangoproject.com/en/dev/intro/tutorial01/ > > specifically with the model of Question > > class Question(models.Model): > question_text

Re: API rest for https://docs.djangoproject.com/en/dev/intro/tutorial01/ help

2014-02-20 Thread Jonathan Baker
It appears that you're using the Django Rest Framework, and if that's the case then you need to reference the section on serializer relations: http://www.django-rest-framework.org/api-guide/relations On Thu, Feb 20, 2014 at 3:53 PM, Antonio Villavicencio wrote: > I am trying

API rest for https://docs.djangoproject.com/en/dev/intro/tutorial01/ help

2014-02-20 Thread Antonio Villavicencio
I am trying just to do an API REST with the project of: https://docs.djangoproject.com/en/dev/intro/tutorial01/ specifically with the model of Question class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class