Django "makemigrations" stuck for ever
When I run python manage.py makemigrations, it just gets stuck. No matter how long I wait, it stays frozen forever—no logs, no output, nothing. I even changed my PostgreSQL database to the default SQLite database in settings.py, but it still didn’t help. Please help me out.
I expected python manage.py makemigrations to detect my model changes and generate migration files. Instead, it just gets stuck with no output, logs, or errors—completely frozen.
Here’s what I’ve tried so far:
Switched from PostgreSQL to the default SQLite DB in settings.py to rule out DB-related issues.
Deleted all old migration files (except init.py) and tried running makemigrations again.
Cleared all pycache and .pyc files.
Rebuilt the virtual environment from scratch and reinstalled all dependencies.
Simplified the models (removed unnecessary fields, used proper types like DateTimeField instead of CharField for dates).
Tried isolating the models in a new Django app within the same project.
Ran makemigrations --verbosity 3 and --dry-run, but still no output or detection.
Even created a brand new Django project and app with a minimal model, and it still gets stuck when running makemigrations.
At this point, I’m not sure if it’s Django, my environment, or something corrupted deep in the project setup. Any help is appreciated.