当我使用PYTEST运行测试用例时,我收到了10个警告-
RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
url(r'^password/reset/$', PasswordResetView.as_view(),
RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
url(r'^password/reset/confirm/$', PasswordResetConfirmView.as_view(),
RemovedInDjango40Warning: django.conf.urls.url() is deprecated in favor of django.urls.re_path().
url(r'^login/$', LoginView.as_view(), name='rest_login'),
有10个这样的警告.我已经在setup.cfg中try 过筛选警告.误差源为:C:\Users\suraj\AppData\Local\Programs\Python\Python39\lib\site-packages\dj_rest_auth\registration\urls