If you want the django app to be timzone, localization and intentioanlization aware you have to set the propper settings in the settings.py
2016-07-14 11:07 GMT+01:00 Wequu A <[email protected]>: > Hello, > > I am using django to create rest api with django-rest-framework. I will > not use its template system. My database backend is PostgreSQL where I set > client_encoding to UTF8 and timezone to UTC. In settings.py there are > options like USE_I18N, USE_L10N and USE_TZ. Do I need them? > I don't understand what doc says about them , because I haven't seen what > they do in practice. I think that in my case it is the best to store > datetime in UTC and client will convert it to locale. Is this good approach? > > Thanks in advance, > Tobias > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/3727cf96-98b2-4bd9-9de4-b8c7657e5b23%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/3727cf96-98b2-4bd9-9de4-b8c7657e5b23%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *monoBOT* Visite mi sitio(Visit my site): monobotsoft.es/blog/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BxOsGBN0i7uf_15Vi%2Bkwstg3dU%3DCn%3D0SJ6Aqmhjc3wYKgGzDQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

