django 1.3 UserProfile matching query does not exist
问题 I have a small problem with User model, the model looks like this: #! -*- coding: utf-8 -*- from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): url = models.URLField(max_length = 70, blank = True, verbose_name = 'WWW') home_address = models.TextField(blank = True, verbose_name = 'Home Adress') user = models.ForeignKey(User, blank = True, unique = True) def __unicode__(self): return '%s' %(self.user) When I open a django-shell and first