diff --git a/example/urls.py b/example/urls.py index 8e7531f09..c457eb1ee 100644 --- a/example/urls.py +++ b/example/urls.py @@ -5,6 +5,7 @@ from two_factor.gateways.twilio.urls import urlpatterns as tf_twilio_urls from two_factor.urls import urlpatterns as tf_urls +from two_factor.admin import AdminSiteOTPRequired from .views import ( ExampleSecretView, HomeView, RegistrationCompleteView, RegistrationView, @@ -40,6 +41,7 @@ path('', include(tf_twilio_urls)), path('', include('user_sessions.urls', 'user_sessions')), path('admin/', admin.site.urls), + path('otp_admin/', AdminSiteOTPRequired().urls), ] if settings.DEBUG: