Skip to content

Commit

Permalink
chore: add AdminSiteOTPRequired example
Browse files Browse the repository at this point in the history
  • Loading branch information
dopry committed May 5, 2022
1 parent ad626d4 commit 39bcb1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 39bcb1e

Please sign in to comment.