I am trying to set up user authentication for my django project but I keep getting a database error UserProfile_User does not exist. I have tried most of the examples online but none have solved the issue. Below is the code I'm currently trying out. Any relevant pointers would be greatly appreciated. user profile model that I'm currently trying out.
from datetime import datetime from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): user = models.OneToOneField(User) dob = models.DateField(default=datetime.today().year - 18) def __unicode__(self): return ('%s' % (self.user.username))