Installation¶
Ensure a secure authentication layer in your Django project by following these simple steps:
- Install the package
pip install drf_2fa
- Add
drf_2fato yourINSTALLED_APPSinsettings.py:
INSTALLED_APPS = [
...
'drf_2fa',
...
]
-
Configure DRF 2FA by referring to the Configuration Guide
-
Apply database migrations:
python manage.py migrate
- Learn how to use DRF 2FA effectively in the Usage Guide