On Jul 27, 10:13 am, "yalda.nasirian" <[email protected]>
wrote:
> hi ,please help me , i realy dont know what can i do for this error i
> cant see my web page .
> another question : i have datetime error (i import date time in shell
> but this error exist )
> tanx
> please help ! error
> Page not found
>
> We're sorry, but the requested page could not be found.
> [27/Jul/2010 03:48:34] "GET / HTTP/1.1" 404 1612
>
> my models :
> from django.db import models
>
> class Poll(models.Model):
> question = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
> def was_published_today(self):
> return self.pub_date.date() == datetime.date.today()
It would be easier if you enabled DEBUG and included the traceback,
but presumably this is the problem. You haven't imported datetime in
your models.py.
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.