Django test server and development server intermittently having trouble retrieving external resources
One possible issue is that the Django server, in development mode, will store all database requests.
It is also important to remember that when running with DEBUG turned on, Django will remember every SQL query it executes. This is useful when you’re debugging, but it’ll rapidly consume memory on a production server.
Does the same behavior happen if you turn DEBUG = False
in settings? Does restarting the server solve it?