Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

formats.py 799B

12345678910111213141516171819202122232425
  1. # This file is distributed under the same license as the Django package.
  2. #
  3. DATE_FORMAT = r'j \d\e F \d\e Y'
  4. TIME_FORMAT = 'H:i'
  5. DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\a\s H:i'
  6. YEAR_MONTH_FORMAT = r'F \d\e Y'
  7. MONTH_DAY_FORMAT = r'j \d\e F'
  8. SHORT_DATE_FORMAT = 'd/m/Y'
  9. SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
  10. FIRST_DAY_OF_WEEK = 1 # Monday: ISO 8601
  11. DATE_INPUT_FORMATS = [
  12. '%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
  13. '%Y%m%d', # '20061025'
  14. ]
  15. DATETIME_INPUT_FORMATS = [
  16. '%d/%m/%Y %H:%M:%S',
  17. '%d/%m/%Y %H:%M:%S.%f',
  18. '%d/%m/%Y %H:%M',
  19. '%d/%m/%y %H:%M:%S',
  20. '%d/%m/%y %H:%M:%S.%f',
  21. '%d/%m/%y %H:%M',
  22. ]
  23. DECIMAL_SEPARATOR = '.' # ',' is also official (less common): NOM-008-SCFI-2002
  24. THOUSAND_SEPARATOR = ','
  25. NUMBER_GROUPING = 3