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

336
Views
Django LOGIN_REDIRECT_URL no funciona

Quiero usar el marco de inicio de sesión de django para mi primera aplicación en django.

Este es mi archivo url de django

 from django.contrib.auth import views as auth_views ... url(r'^$', auth_views.login, {'template_name': 'login.html'}, name='login'), url(r'^logout/$', auth_views.logout, {'next_page': '/'}, name="logout"),

En mi archivo de configuración, definí estas variables:

 LOGIN_URL = 'login' LOGOUT_URL = 'logout' LOGIN_REDIRECT_URL = '/conceptos'

Mi vista de inicio de sesión de django no funciona correctamente, siempre redirige a localhost: 8000/index.html. Pero muestra el formulario de inicio de sesión en localhost/. ¿Por qué está pasando esto?

about 4 years ago · Santiago Trujillo
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!