> class Poll(models.Model):
>         """docstring for Poll"""
>         question = models.CharField(maxlength=200)
>         pubdate = models.DateTimeField("date published")
>         def __str__(self):
>                 """docstring for __unicode__"""
>                 return self.question
>                 class Admin:
>                         pass
>

Your indenting is off. The Admin class should be one indented level
in, not two. As for your routing issue, you need to tack admin onto
your url (localhost/admin/) to view the admin. The error page is
basically saying, "here's what you gave (/) and I found no matches
among the following regular expressions (^admin/)". It's correct :).
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to