Hello pals,
I’ve noticed something super weird when using django on macos. My mac has python 3.13.0b1 and I have 2 django projects one running on 4.2.18 & another is on latest 5.2.1
I’ve noticed it takes an awful amount of time to get the server started. sometimes even upto 10 mins. but once it starts django server serves without any significat delays in development environment. I couldnt exactly pinpoint the problem but the workaround im using is im using python 3.12 or python3.10 instead of 13 which seems to run the server within a few seconds.
If anyone could explain to me whats happening under the hood, That’d be fantastic. Thanks!!
For your Django 5.2 (I’m assuming 5.2 because there isn’t a Django 5.3), I’d start by looking at third party packages that you may have installed that might not be compatible with 3.13.
I’d suggest you get a small test-project (perhaps the Polls tutorial) that you can run in a minimal environment. Create a venv that doesn’t have anything other than what is absolutely necessary and try it to see if you see the same behavior.