Requirements and Installation¶
Requirements¶
Django 2.2+
Additionally, if you would like to use country based restrictions you will need:
Installation¶
You can pip install from PyPI:
pip install django-iprestrict-redux
The country based lookups are optional, if you need it you can install them with:
pip install django-iprestrict-redux[geoip]
Note: if you’re not using the country based lookups you will have to set the IPRESTRICT_GEOIP_ENABLED
setting to False
in your settings.py
. See: IPRESTRICT_GEOIP_ENABLED.
Development¶
For development you will need Poetry_.
Fork the project and then:
poetry install
To run the tests against the python and Django in your virtualenv:
pytest
To run the tests against all combinations of supported Python 3, and Django versions:
tox
This will also run flake8.