question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date_published')
def __str__(self):
return self.question_text
def was_published_recently(self):
return self.pub.date >= timezone.now() - 
~~~
and here are the questions that invoked these errors:
~~~
In [9]: Question.objects.filter(question_text_startswith='What')   
In [12]: Question.objects.get(pub_date_year=current_year)  - 
datetime.timedelta(days=1)
~~~

I think these are accurate representations of the text instructions.  In 
line 12 above,, python doesn't like that date time (had to put a space in 
this comment or it kept filling in DateTimeField) word.  Plus I don't 
understand the. -  .

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9245afb9-68c1-4b91-9125-e7ecb65c4094n%40googlegroups.com.

Reply via email to