Error: That Port is already in use (Heroku/Django)

It looks like port 5000 is used by "AirPlay Receiver" on macOS Monterey. The answer on that question shows how you can disable AirPlay Receiver in your System Preferences.

But if you don't want to disable that feature you could also just use a different port. Django's default development port is 8000, so that might be a good choice.

Assuming you have something like this in your .env file:

PORT=5000

simply change it to

PORT=8000