How to send a correct authorization header for basic authentication How to send a correct authorization header for basic authentication django django