Can anyone please explain the below code???

2017-10-06 Thread utpalbrahma1995
from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): question = models.ForeignKey(Question, on_delete=models.CASCADE) choice_text = models.CharFie

Re: Can anyone please explain the below code???

2017-10-06 Thread Bruno Ribeiro da Silva
Wrong list, this is for development related only. I suggest you read django's documentation https://docs.djangoproject.com/en/1.11/ 2017-10-06 8:05 GMT-03:00 : > from django.db import models > > class Question(models.Model): > question_text = models.CharField(max_length=200) > pub_date =