Hi all
I am new to Django and I'm having an issue with some code. I am trying to
get through the first tutorial from the Django site.
I have a file called polls/models.py and have created a class that contains
the following code
class Poll(models.Model):
question = models.CharField(max_lengt
then typed: p = Poll(question="Whats new?", pub_date=timezone.now())
>> This line will not run and tells me pub_date is an invalid argument.
>>
>> Thanks again in advance
>>
>>
>> On Thursday, October 25, 2012 2:28:42 PM UTC+1, emr wrote:
>>
>>&g
t;
>> On Thursday, October 25, 2012 2:28:42 PM UTC+1, emr wrote:
>>
>>> Hi brendan,
>>>
>>> You have the import class before using, so
>>>
>>> from polls.models import Poll
>>>
>>> 2012/10/25 Brendan Carroll
>>>
>
3 matches
Mail list logo