Django redirecting http -> https

The runserver command only handles http.

However if you have SECURE_SSL_REDIRECT set to True then you will be redirected from http to https.

See the Django docs on SSL/HTTPS for more information.


My best guess is that in the settings.py file of your project you have set

SECURE_SSL_REDIRECT = True

which causes your http to redirect to https. You can read about it here.

If that is the case, you might want to remove that line and clear your browser cache before it starts to work as intended.