an idea: Do you have a __init__.py in every subfolder? also the models and userprofile folder under calltracking_main ?
On Jun 16, 2011, at 10:10 AM, 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' > ... > 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' > 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 > ... > > I don't know if this is relevant, but here's my wsgi: > import sys > import os > > apache_dir = os.path.dirname(os.path.abspath(__file__)) > project_dir = os.path.normpath(os.path.join(apache_dir + '/../..')) > app_dir = os.path.normpath(os.path.join(apache_dir + '/..')) > > sys.path = [ > os.path.join(project_dir, 'lib/python2.7/site-packages'), > project_dir, > app_dir > ] + sys.path > > os.environ['DJANGO_SETTINGS_MODULE'] = 'calltracking.settings' > > import django.core.handlers.wsgi > application = django.core.handlers.wsgi.WSGIHandler() > > > So syndb doesn't pick up on the UserProfile, what am I doing wrong? > Can I force recreation of the model? I have delete the whole db but still no > luck. > I upgraded Django (tracking trunk) but that wasn't a sollution either. > > Weird thing is that this code is a fork from another project (very minor > differences) > and there, I didn't encounter any errors. > Both projects run on virtualhosts specified in apache with > wsgi/nginx/memcached, > from a virtualenv. > > Thanks for any info, > > Regards, > Benedict > > -- > 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. > -- 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.