When i run the server with python manage.py runserver 0.0.0.0:8000 --settings=paymall_backend.settings.prod i can access the domain in port 8000, but when i run ther server with gunicorn --bind 0.0.0.0:8000 paymall_backend.wsgi or gunicorn --bind 0.0.0.0:8000 paymall_backend.wsgi:application then i can't access and get Bad request 400, i have two DNS setup in the domain AAAA @ with IPv6 and A @ IPv4. How can i resolve this error?
#Gunicorn deployment
4 messages · Page 1 of 1 (latest)
it is working, i added os.environ['DJANGO_SETTINGS_MODULE'] = "paymall_backend.settings.prod" in wsgi.py and the error gone,