Django server slower with chrome + another instance / browser

First let me say that this is not about production settings for django - it is for local development and testing.

I am testing several user scenarios, requiring me to log in as several different users. I logged in as user A using Chrome, and user B using incognito mode of Chrome, and as user C using Firefox. I use "manage.py runningerver" to start the dev server.

The first instance with plain Chrome (user A) works well and is fast. Other instances are very slow - perhaps better described as being stuck. They sit idle for 10-30 seconds, and then finally display the page pretty quickly.

While other browsers are stuck, I can go to the first (user A) and click on it, and it works well and quickly. In other words, only requests from two other instances get stuck - the first instance always works well.

A resource that slowly displays as an html page, not static content.

The backend is Django 1.1.1 with SQLite as a database running on OS X 1.6.7.

Any ideas? Does Chrome do something special to confuse the connection?

+6
source share
1 answer

This may be a known issue: "The development web server sometimes freezes with Chrome":

https://code.djangoproject.com/ticket/16099

Fixed last in django trunk:

https://code.djangoproject.com/changeset/16427

+4
source

Source: https://habr.com/ru/post/890953/


All Articles