B
B
blackbb2018-03-30 13:08:12
Django
blackbb, 2018-03-30 13:08:12

How to solve problem when migrating Django cms to server?

Hello. There are vds with nginx and uwsgi installed. When transferring my project to Django-cms, it gives an error code 400, message Bad request syntax ('\x00w\x03\x00\x0c\x00QUERY_STRING\x00\x00\x0e\x00REQUEST_METHOD\x03\x00GET\x0c\x00CONTENT_TYPE\x00\ x00\x0e\x00CONTENT_LENGTH\x00\x00\x0b\x00REQUEST_URI\x01\x00/\t\x00PATH_INFO\x01\x00/\r\x00DOCUMENT_ROOT\x15\x00/usr/share/nginx/html\x0f\x00SERVER_PROTOCOL\x08\ x00HTTP/1.1\x0e\x00REQUEST_SCHEME\x04\x00http\x0b\x00REMOTE_ADDR\x0e\x0031.180.207.118\x0b\x00REMOTE_PORT\x05\x0063565\x0b\x00SERVER_PORT\x02\x0080\x0b_d\x00SERVER t\x00HTTP_HOST\r\x0062.109.17.242\x0b\x00HTTP_ACCEPT?\x00text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\x1e\x00HTTP_UPGRADE_INSECURE_REQUESTS\x01\x001 \x0b\x00HTTP_COOKIE\xe1\x00ispmgrlang5=orion:ru;ispmgrses5=b3d5d6605016;
What is the problem, where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2018-03-30
@dimonchik2013

dig into the logs
and to start versions of python and libraries

T
tema_sun, 2018-03-30
@tema_sun

View the logs, of course. It should be noted that for many years I had no other reason for 400 Bad request, except for the fact that I forgot to register domains in ALLOWED_HOSTS. That's why I would look there first.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question