On the second page where you add the polls to the admin section.
Already added in the polls and the settings.py file, and logged into
admin, so admin does work.

When i added admin into the models.py file per tutorial it does not
show up on the admin screen. tried logging in an out, clear cache etc.
nothing.

Here is the code if anyone has any ideas. BTW 4 spaces for indent of
class and 8 spaces for indent of pass.



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
    def was_published_today(self):
        return self.pub_date.date() == datetime.date.today()
        class Admin:
                pass

NSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'mysite.polls',
    'django.contrib.admin',


Thank you,
Dave


--~--~---------~--~----~------------~-------~--~----~
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