pub_date timezone

2012-10-25 Thread Brendan Carroll
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

Re: pub_date timezone

2012-10-25 Thread Brendan Carroll
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

Re: pub_date timezone

2012-10-27 Thread Brendan Carroll
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 >>> >