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.
New contributor
Ibrahim is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.