Django Globalisation Tools
Project description
Django Globalisation
What is it?
A Django app that helps in with internationalisation and localisation.
What problem does it solve?
Guess the origin country of the request.
Return the currency a country uses.
Fetch the language code.
Does not use commercial databases, uses original data sources.
Both IPv4 and IPv6.
Has a reasonable model layout.
How do I install it?
$ pip install django-g11n
Use django-integrator to integrate this app to your django instance, alternatively you can do it the common manual way.
How do I use it?
# To fill initial data use the command $ python manage.py g11n_setup # To guess someones IP $ python manage.py guess_tld_by_ip 8.8.8.8 # To find out what the currency is most likely associated with an tld $ python manage.py currency_by_tld gb #
Of course you most likely want to use it programmatically, for that have a look at django_g11n.tools.by_request, this has the following functions:
ipaddress(request)
guess_country(request)
guess_language(request)
guess_currency(request)
guess_country_language_currency(request)
The will return data as you may guess from the functions name.
What license is this?
Two-clause BSD
How can I get support?
Please use the repo’s bug tracker to leave behind any questions, feedback, suggestions and comments. I will handle them depending on my time and what looks interesting. If you require guaranteed support please contact me via e-mail so we can discuss appropriate compensation.
Signing Off
Is my work helpful or valuable to you? You can repay me by donating via:
https://paypal.me/MartinHellwig
-or-
https://www.patreon.com/hellwig
Thank you!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.