Sure! On Apr 17, 12:00 pm, "Eric Liu" <[EMAIL PROTECTED]> wrote: > Hi, > May be you can post your source code,then we can check it whether there are > some wongs with it. >
I simply cut and paste from the tutorial, but here 'tis: =============================== polls/models.py: =============================== from django.db import models # Create your models here. from django.db import models class Poll(models.Model): question = models.CharField(maxlength=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question class Admin: pass class Choice(models.Model): poll = models.ForeignKey(Poll) choice = models.CharField(maxlength=200) votes = models.IntegerField() # ... def __str__(self): return self.choice class Admin: pass =============================== polls/urls.py: =============================== from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^admin/', include('django.contrib.admin.urls')), ) =============================== And that is it :-) Like I said, it was cut-and-paste from the standard tutorial so unless I screwed something up, I don't see why I am getting the weird error. Thanks! Jon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---