adjust your re_path that should exclude /admin/ URLs
urlpatterns += [ re_path(r"^(?!admin/).*", views.RedirectView.as_view(), name="my-view"), ]