If the order is the problem, then you can define dependencies https://docs.djangoproject.com/en/1.8/howto/writing-migrations/#controlling-the-order-of-migrations
On Tuesday, 6 October 2015 16:34:04 UTC+2, Fellipe Henrique wrote: > > Just to update... these error occurs when I use PostgreSQL, using SQLite > works perfect... > > T.·.F.·.A.·. S+F > *Fellipe Henrique P. Soares* > > e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ > 's/(.)/chr(ord($1)-2*3)/ge' > *Blog: http://fhbash.wordpress.com/ <http://fhbash.wordpress.com/>* > *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>* > *Twitter: @fh_bash* > > On Tue, Oct 6, 2015 at 10:08 AM, Fellipe Henrique <[email protected] > <javascript:>> wrote: > >> Hello, >> >> I have my custom user model in my "account" app, and I have in my "core" >> app.. >> >> Inside my "core app" I have my City Model... >> >> But I need each user has to be set the user City... >> >> My problem: when I apply the migration, I give the error: "city model" >> does not exist. even I put the "core app" abouve the "account app" in >> settings.py. >> >> It's appears django try to make the account migration first, but It's >> doesn't create yet my "city app"... >> >> What's the better approach to solve these problem? >> >> Regards. >> >> T.·.F.·.A.·. S+F >> *Fellipe Henrique P. Soares* >> >> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ >> 's/(.)/chr(ord($1)-2*3)/ge' >> *Blog: http://fhbash.wordpress.com/ <http://fhbash.wordpress.com/>* >> *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>* >> *Twitter: @fh_bash* >> > > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/871a9717-9c66-4417-8cbe-3d7f89141313%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

