Run & Demo
Run
# Set up the database
$ python manage.py makemigrations
$ python manage.py migrate
# Create the superuser
$ python manage.py createsuperuser
# Start the application (development mode)
$ python manage.py runserver # default port 8000
Access the admin
section in the browser: http://127.0.0.1:8000/
Demo
User List: the users who have enabled two-factor auth
Add New User:
Scan QRCode and enter the valid code:
Logout and login again with Google Authenticator: