thank you so much hector but still i have error !
Page not found (404)
| Request Method: | GET |
|---|---|
| Request URL: | http://127.0.0.1:8000/admin/ |
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
- ^polls/$
- ^polls/(?P<poll_id>\d+)/$
- ^polls/(?P<poll_id>\d+)/results/$
- ^polls/(?P<poll_id>\d+)/vote/$
The current URL, admin/, didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
On Tue, Jul 27, 2010 at 2:37 PM, Daniel Roseman <daniel@roseman.org.uk> wrote:
On Jul 27, 10:13 am, "yalda.nasirian" <yalda.nasir...@gmail.com>
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 :It would be easier if you enabled DEBUG and included the traceback,
> 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()
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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment