title: Get / extract the date format currently used, from Django
body: <p>Is there a function that gets/extracts the string literal &quot;dd/mm/yyyy&quot; or &quot;mm/dd/yyyy&quot; based on Django's localisation/internationalisation settings i.e. the default format that it is using, when displaying dates coming from a &quot;models.DateField&quot;, in its template engine? Assuming that the localisation/internationalisation settings have been set.</p>
  <p><strong>Update</strong></p>
  <p>I tried to use SHORT_DATE_FORMAT, but it isn't set according to my localisation/internationalisation settings. I was expecting &quot;d/m/Y&quot;. In &quot;settings.py&quot;:</p>
  <pre><code>LANGUAGE_CODE = 'en-gb'
  TIME_ZONE = 'Europe/London'
  USE_I18N = True
  USE_L10N = True
  USE_TZ = True
  </code></pre>
  <p>For example:</p>
  <pre><code>from django.conf import settings
  print(settings.SHORT_DATE_FORMAT)
  m/d/Y
  print(settings.DATE_FORMAT)
  N j, Y
  </code></pre>
  <p>Obviously this isn't the right approach.</p>