I’m following the 4 part tutorial at djangoproject.com.
In the 2nd part of it (https://docs.djangoproject.com/en/1.3/intro/tutorial02/) im configuring the admin interface, it works fine, except for the fact that date and time javascript pickers does not appear.
I’ve been following the tutorial step by step, so I can’t imagine what i’m doing wrong.
Also, the widget does not appear in admin/auth/user/1/ neither
Any ideas?
Thanks
Update
This is my code:
–models.py–
import datetime
from django.db import models
class Poll(models.Model):
question = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __unicode__(self):
return self.question
def was_published_today(self):
return self.pub_date.date() == datetime.date.today()
class Choice(models.Model):
poll = models.ForeignKey(Poll)
choice = models.CharField(max_length=200)
votes = models.IntegerField()
def __unicode__(self):
return self.choice
–admin.py–
from polls.models import Poll
from django.contrib import admin
admin.site.register(Poll)
It was a problem of django installation, i’ve reinstalled it and is now working properly.