Re: django 1.8 upgrade custom user model syncdb
On Wednesday, April 8, 2015 at 5:46:42 PM UTC+2, Markus Holtermann wrote: > > > glad it works now. In that case you want to look at > https://docs.djangoproject.com/en/1.8/ref/settings/#migration-modules > and place the migrations somewhere in your project. Otherwise the > migrations end up in your virtualenv and are not available when you > deploy the application. > Yep, thx - didn't know I could place the migrations anywhere :). 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/61c002b2-dd7f-4fcf-a8f1-f6349c366aee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: django 1.8 upgrade custom user model syncdb
Hey Jochen, glad it works now. In that case you want to look at https://docs.djangoproject.com/en/1.8/ref/settings/#migration-modules and place the migrations somewhere in your project. Otherwise the migrations end up in your virtualenv and are not available when you deploy the application. Best, /Markus On Wed, Apr 08, 2015 at 08:32:35AM -0700, Jochen Wersdoerfer wrote: 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. -- -- 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/20150408154558.GA3356%40pyler.local. For more options, visit https://groups.google.com/d/optout. pgp9EWuvA9hZm.pgp Description: PGP signature
Re: django 1.8 upgrade custom user model syncdb
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.
django 1.8 upgrade custom user model syncdb
Hi *, I’m trying to upgrade to django 1.8, but running into some app-dependency issues: http://pastebin.com/uvKtBtNa 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. For syncdb there’s an easy workaround - I just run ./manage.py migrate accounts first. But since syncdb is also called by the testrunner, so I can’t run tests anymore :/. 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/99a9f0a4-cb6a-46dc-9eef-d85e87649b43%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.