#35151: makemigrations hangs forever on complex apps/models
     Reporter:  Seth Syberg      |                    Owner:  nobody
         Type:  Bug              |                   Status:  closed
    Component:  Migrations       |                  Version:  5.0
     Severity:  Normal           |               Resolution:  needsinfo
     Keywords:  migrations hang  |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
Comment (by Seth Syberg):

 FWIW I was able to unblock myself here, but something still smells very
 odd to me, I'll add some details for posterity/anyone who ends up here.
 Maybe this is better suited as a feature request to (1) better handle
 custom user models and (2) make debug output more helpful.

 As I googled around about this I found lots of info about custom user
 models/auth causing issues (including this now 8 year old open ticket:
 https://code.djangoproject.com/ticket/25313) so I had a hunch it was
 related to this. What finally got me over the hump though was killing the
 hung makemigrations (ctrl-c) and attempting to rerun makemigrations gave a
 little more information (on the 2nd run it oddly did not hang but errored
 with a circular dependency error). This resulted in a flurry changes and
 moving add fields around and deleting some other field references that I
 was getting errors on and then running makemigrations again, and
 eventually I did end up in a stable state. I went from 200+ migration
 files across 7 apps to about 12 migration files total and spinning up now
 is much much faster.
Ticket URL: <https://code.djangoproject.com/ticket/35151#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Reply via email to