Re: change default date format to dd-mm-YYYY
Hi, I had the same problem. You have to override https://github.com/django/django/tree/master/django/conf/locale that files, depending of language. I made this in that way:
Put in settings.py:
# path to custom localizations formats
FORMAT_MODULE_PATH = 'custom_formats'
I attached a zipped structure, to be place into main project dir. It's for english locale. In formats.py You can change some locale formats (https://github.com/django/django/blob/master/django/conf/locale/en/formats.py).
On Monday, June 25, 2012 10:51:43 AM UTC+2, ledzgio wrote:
How can I change default project/app date format to dd-mm-YYYY?
thanks
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/URXSP3n3i-IJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home