On Wednesday, April 8, 2015 at 4:56:43 PM UTC+2, Jochen Wersdoerfer wrote: > > > There’s an initial migration for my custom user model in accounts.models, > so the accounts_pixolususer table should have been created. The syncdb > command breaks while adding a constraint to an app without migrations > (meters), which has a model with a foreign key pointing to my custom user > model. >
Ok, got it. Can't have a dependency from an unmigrated app to an app with migrations. Most of my own and some third party apps were unmigrated. Had circular dependencies, too. Difficult upgrade. You can add an initial migration for an umigrated third party app installed via pip by: ./manage.py makemigrations third_party_app But now it works \o/ :). best regards, Jochen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3ad4dc51-94c0-41da-addf-cd1676243df7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.