On Thu, 2011-06-16 at 10:10 +0200, Benedict Verheyen wrote: > Hi, > > > The syncdb command doesn't want to create the UserProfile table. > Also when I was trying to get this working while running the app, > it was complaining about AUTH_PROFILE_MODULE. > It is however correctly specified in my settings.py: > ... > AUTH_PROFILE_MODULE = 'calltracking_main.UserProfile' ^^^^^^^^^^^^^^^^^ app named "calltracking_main"
> Installed apps is ok: > INSTALLED_APPS = ( > 'django.contrib.auth', > ... > 'calltracking.calltracking_main', > ) > > model: > class UserProfile(models.Model): > class Meta: > verbose_name = _('UserProfile') > verbose_name_plural = _('UserProfiles') > db_table = 'calltracking_userprofile' > ordering = ('displayname',) > app_label = 'calltracking' ^^^^^^^^^^^^^^^^^^^^^^^^^^ Only "calltracking" > displayname = models.CharField(max_length=50) > department = models.CharField(max_length=30, blank=True) > user = models.ForeignKey(User, unique=True) > def __unicode__(self): > return self.displayname > > As I split models, I have to specify this in the __init__.py file: > ... > from calltracking_main.models.userprofile import UserProfile > ... Note that you have specified app name for UserProfile as "calltracking" but referring it (settings at least) as appname "calltracking_main". Probably fixing appname in model would fix all other issues as well. -- Jani Tiainen -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.