Pergunta

I have a django aplication with an admin panel. When i add some item (it takes about 10 seconds to add it), i can't load any other page. The page is waiting for the first page to load, and then it load itself.

Foi útil?

Solução

Are you using the development server? It's single-threaded by design. You'll need to run your Django app in a real web server (like Apache) to load pages simultaneously.

Outras dicas

As Bob points out, the devserver/runserver is single-threaded, but if you want to, there is a multi-threaded local dev server option

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top