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

214
Views
La configuración Secure_ssl_redirect para django no hace nada en heroku

Estoy implementando una aplicación Django en heroku y tratando de forzar https en todas las páginas. Yo uso la siguiente configuración para eso:

 SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

Ahora, cuando visito www.mysite.de, de hecho, no me redirige a https. ¿Alguna idea de lo que me estoy perdiendo?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Intente agregar lo siguiente a su configuración.py:

 PREPEND_WWW = True BASE_URL = "https://www.mysite.de" ALLOWED_HOSTS = ['www.mysite.de', 'mysite.de']

Asegúrese de tener habilitados SecurityMiddleware y CommonMiddleware .

about 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!