Skip to content

Commit ddceaf9

Browse files
committed
Update README with info about default init.js
1 parent 6801d19 commit ddceaf9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Install from PyPI.
2626
pip install django-intl-tel-input
2727
```
2828

29-
Add intl-tel-input to your INSTALLED\_APPS, so Django can find the init
29+
Add intl-tel-input to your `INSTALLED_APPS`, so Django can find the init
3030
script.
3131

3232
```python
@@ -114,6 +114,9 @@ Default: `'us'`
114114
Array of countries that will always appear at the top of the dropdown.
115115
Default: `['us', 'gb']`
116116

117-
### auto\_geo\_ip
118-
When True, [freegeoip](https://freegeoip.net) will be used to autodetect the user's country via Ajax. There is a limit of 15,000 queries per hour, so it should not be used on high-traffic sites. Alternatively use [pygeoip](https://pypi.python.org/pypi/pygeoip), detect server-side, then set the `default_code`.
119-
Default: `False`
117+
### use\_default\_init
118+
Use the provided init.js to initialize the plugin. Set this to `False`
119+
if you want to provide your own initialization for the plugin. This is
120+
useful if, for example, you have your own GeoIP implementation you'd
121+
like to use.
122+
Default: `True`

0 commit comments

Comments
 (0)