Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

301
Views
Django redirigiendo http -> https

Estoy corriendo:

 python manage.py runserver localhost:44100

Y esto me está redirigiendo a https :

 » http http://localhost:44100/ HTTP/1.0 301 Moved Permanently Content-Type: text/html; charset=utf-8 Date: Mon, 05 Mar 2018 14:09:09 GMT Location: https://localhost:44100/ Server: WSGIServer/0.1 Python/2.7.14 X-Frame-Options: SAMEORIGIN

¿Por qué / cómo está sucediendo esto? ¿Qué configuración controla si Django acepta http / https ?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

El comando runserver solo maneja http.

Sin embargo, si tiene SECURE_SSL_REDIRECT establecido en True , será redirigido de http a https.

Consulte los documentos de Django sobre SSL/HTTPS para obtener más información.

over 4 years ago · Santiago Trujillo Report

0

Mi mejor suposición es que en el archivo settings.py de su proyecto ha configurado

 SECURE_SSL_REDIRECT = True

lo que hace que su http se redirija a https. Puedes leer sobre esto aquí .

Si ese es el caso, es posible que desee eliminar esa línea y borrar el caché de su navegador antes de que comience a funcionar según lo previsto.

over 4 years ago · Santiago Trujillo Report

0

Use python manage.py runssslserver para manejar SSL y https. Primero debe instalar django-sslserver y configurarlo en

 INSTALLED_APPS = [ 'sslserver', ]
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!