Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django code 400, message Bad request version ('î\x9el\x00$\x13\x01\x13\x03\x13\x02À+À/̨̩À,À0À')

Tags:

django

I was trying to implement 'Securing Django Admin login with OTP', however I can't login into the admin panel now. I removed the app from everywhere but still doesn't work. Any solution for this?

[05/Feb/2021 21:39:49] code 400, message Bad request version ('î\x9el\x00$\x13\x01\x13\x03\x13\x02À+À/̨̩À,À0À')
[05/Feb/2021 21:39:49] You're accessing the development server over HTTPS, but it only supports HTTP.
like image 780
Joe Avatar asked Oct 22 '25 08:10

Joe


1 Answers

If you are on development version you cant use https connection on your localhost so just turn your URL to http and error will be disappear. ex:

https://localhost:8000
or
https://127.0.0.1:8000

just turn it to

http://localhost:8000
or
http://127.0.0.1:8000

also may be at 127.0.0.1:8000

like image 52
Nima Avatar answered Oct 24 '25 22:10

Nima



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!