Django Deployment Code Execution Error vs Local Correct Execution
in my local server ( windows ) my project works fine, when i send a month from the filter via post request to my backend view it does its processing however in deployment (linux based server ) that requests somehow turns into a get request and doesnt send anything. We use ajax to send the request via fetch(url) Any assistance would be greatly appreciated
I tried changing the csrf and cors and header values being sent to the linux server in order to bypass the error but nothing happens.
Gunicorn Configuration
[Unit]
Description=gunicorn socket
[Socket]
ListenStream=/run/gunicorn.sock
[Install]
WantedBy=sockets.target
---
[Unit]
Description=gunicorn daemon
After=network.target
[Service]
User=root
Group=root
WorkingDirectory=/home/zeritek/cras
ExecStart=/home/zeritek/cras/venv/bin/gunicorn \
--access-logfile /var/log/gunicorn-access.log --error-logfile /var/log/gunicorn-error.log \
--workers 3 \
--timeout 3000 \
--threads 3 \
--keep-alive 3000 \
--worker-class gevent \
--bind unix:/run/gunicorn.sock \
Extraction.wsgi:application
[Install]
WantedBy=multi-user.target
Nginx Configuration
server {
listen 80;
server_name 1440.25554.1555.4266;
client_body_timeout 300;
location = /favicon.ico {
access_log off;
log_not_found off;
}
location /static/ {
root /home/zeritek/cras;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
proxy_read_timeout 600; # Increase this value
proxy_send_timeout 600; # Increase this value
proxy_connect_timeout 600;# Increase this value
}
}