Yes do the same.
On Thu, Nov 24, 2016 at 11:16 PM, odd hogstad <odd.r.hogstad@gmail.com> wrote:
db1 holds the auth stuff already. Do I need to also have it in db2 for the migrations to work?--
torsdag 24. november 2016 12.22.14 UTC+1 skrev pradam.programming følgende:hi Hogstad,Before doing app migrate please python manage.py migrate auth ==>I hope this will solve the issueOn Thu, Nov 24, 2016 at 3:54 PM, odd hogstad <odd.r....@gmail.com> wrote:I have two databases in my project, db1, which changes quite frequently, and db2, which seldom changes. The app was original written in django 1.3, but we've upgraded since then, and now uses 1.8. Now I need to make a change on db2 for the first time since the upgrade from 1.3. I make my changes in the model, but when I do python manage.py migrate model_of_db2 db2, the changes seems to be applyed, but I get an error:--
"Error creating new content types. Please make sure contenttypes "
RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.
I tried adding a router, but same issue. What am I doing wrong? Do I need contenttypes also in db2?
Thanks!
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...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/844ea033-380b .-4103-86cc-311aec9f5abd%40goog legroups.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+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4dc7af3b- .61d9-4128-b44a-ffbb5954214f% 40googlegroups.com
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGGVXBP2mP-KWHeBHr%3DG480mrCokUOc0i9h9%3Dr2ns0%3D5YoEkSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment