R
authentication_cla
sses = [SessionAuthentication, ]
Size: a a a
R
authentication_cla
sses = [SessionAuthentication, ]
N
authentication_cla
sses = [SessionAuthentication, ]
N
MW
SellerProfile.objects.all()
.order_by("-rating")
.filter(SellerProfile.created_at!=SellerProfile.update_at)
MT
gunicorn -w 1 --bind :8000 --access-logfile - --log-level debug --error-logfile - --capture-output --forwarded-allow-ips="127.0.0.1,172.17.0.0/16" --worker-class gevent --timeout 120 core.wsgi
в докере. на локалке (тестовой) среде все работает, но на проде (на другом сервере) падает по таймауту при запросе любой страницы , кроме корневого, когда просто запущен как джанго, через runserver то все работает[11] [DEBUG] GET /user_info/
[8] [CRITICAL] WORKER TIMEOUT (pid:11)
[13] [INFO] Booting worker with pid: 13
MW
S
SellerProfile.objects.all()
.order_by("-rating")
.filter(SellerProfile.created_at!=SellerProfile.update_at)
SellerProfile.objects.exclude(created_at=update_at).order_by("-rating")
MW
MW
MW
S
MW
select * from profiles_buyerprofile where created_at = updated_at;
MW
DT
SellerProfile.objects.all()
.order_by("-rating")
.filter(SellerProfile.created_at!=SellerProfile.update_at)
SellerProfile.objects.exclude(created_at=F('update_at')).order_by("-rating")
MT
gunicorn -w 1 --bind :8000 --access-logfile - --log-level debug --error-logfile - --capture-output --forwarded-allow-ips="127.0.0.1,172.17.0.0/16" --worker-class gevent --timeout 120 core.wsgi
в докере. на локалке (тестовой) среде все работает, но на проде (на другом сервере) падает по таймауту при запросе любой страницы , кроме корневого, когда просто запущен как джанго, через runserver то все работает[11] [DEBUG] GET /user_info/
[8] [CRITICAL] WORKER TIMEOUT (pid:11)
[13] [INFO] Booting worker with pid: 13
DT
S
SellerProfile.objects.exclude(created_at=F('update_at')).order_by("-rating")
MW
MT
location / {
proxy_pass http://172.17.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}