P
P
pvgdrk2014-10-02 22:11:02
Django
pvgdrk, 2014-10-02 22:11:02

How can django detect the visitor's language on registration?

I use django-registration to register. Here a user came for the first time, for example, from Spain. The jango-registration supports localization for many languages, but how do you tell it which language to use for this user?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2014-10-02
@OnYourLips

From browser headers.
It is absolutely impossible to determine by IP.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question