Adding extra layer of security(OTP) to a website [closed]
I’m unable to use Django admin to add device. I have a feeling the problem is in the urls.py file. This is the content
From django.contrib import admin
from django.urls import path
from django_otp.admin import OTPAdminSite
admin.site__class__=OTPAdminSite
urlpatterns = [
path(‘admin/‘, admin.site.urls),
]
I tried logging in to the localhost:8000/admin/. Although it was successful, it prompted ‘choose device’ when I haven’t created one.