Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

455
Vistas
date formatting datefield in django

I want to have the given format "dd/mm/yyyy" overall the application, but momentally I have "mm/dd/yyyy".

Here's the code in models.py

period_from = models.DateField(db_column="Period From", blank=True, null=True)

How to define it for all the datefields and in which file?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can use the DATE_FORMAT [Django-doc] and SHORT_DATE_FORMAT settings [Django-doc] to specify how Django will format date objects.

Note that if you enable USE_L10N [Django-doc], then these settings will not have effect, and Django will format the date according to the locale of the user.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda