Apache + django + windows долгая загрузка

  apache, django, windows

Good afternoon.

When deploying the project, there was a problem with the response speed, it’s not that the page does not load, but that it is unstable, specifically the page can load in a second or hang for a minute and to no avail, while if you open the page http://localhost/123di123423WA/ that is, it always loads instantly.

example of uploading via localhost

example of uploading via example.com/

Это прописано в Apache httpd.conf
LoadFile "c:/python37/python37.dll"
LoadModule wsgi_module "c:/python37/Lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win_amd64.pyd"
WSGIPythonHome "c:/python37"

WSGIScriptAlias / "c:/django_project/kors/kors/wsgi.py"
WSGIPythonPath "c:/python37;C:/django_project/kors/"
WSGIPassAuthorization On

<Directory "c:/django_project/kors/kors/">
<Files "wsgi.py">
Require all granted

Alias /static "C:/django_project/kors/kors/static"
<Directory "C:/django_project/kors/kors/static">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

Alias /media "C:/django_project/kors/kors/static/media"
<Directory "C:/django_project/kors/kors/static/media">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

I tried different options but unfortunately not searching or reading all the posts similar to mine did not give results. Maybe someone has encountered this problem. Brandmaster and other things are disabled.

Source: Windows Questions

LEAVE A COMMENT