I use Django 1.6
.
When I have a field that have DateTimeField
type, Django
automatically use Django calendar
.
But in Iran
we use Persian Calendar
(or Jalali Calendar
or Farsi Calendar
).
How can I change Django auto generation because it generate Persian calendar
in page?
In other hand, I want change default calendar
with Persian Calendar
?
You will likely have to implement your own custom widget - I do not think Django provides a Persian calendar widget at this point in time.
There is an available code snippet for a Persian DateTime widget that I was able to locate, but have not yet tested. If it is not a perfect fit, then hopefully it will aid you in writing your own solution.