Hi all,
I am following the online tutorial and I am unable to add my app to
the admin section.
When I runserver I get:
mysite.polls: unexpected indent (models.py, line 5)
1 error found
Here is my models.py:
from django.db import models
class Poll(models.Model):
question = models.CharField(maxlength=200)
pub_date = models.DateTimeField('date published')
class Admin: pass
class Choice(models.Model):
poll = models.ForeignKey(Poll)
choice = models.CharField(maxlength=200)
votes = models.IntegerField()
class Admin: pass
Am I doing something wrong?
Extra Info:
Using Windows XP
Django version 0.96
Using Notepad++ to edit files
Thanks!
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---