Changes between Initial Version and Version 1 of Ticket #35151, comment 5
- Timestamp:
- Jan 29, 2024, 3:47:52 PM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35151, comment 5
initial v1 1 1 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. 2 2 3 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.3 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 of changes and moving add fields around and deleting some other field references that I was getting errors on and then running makemigrations again (I unfortunately did not record my steps as I was in deep debug mode), 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.