from admin_honeypot import views
from django.conf.urls import url

app_name = 'admin_honeypot'

urlpatterns = [
    url(r'^login/$', views.AdminHoneypot.as_view(), name='login'),
    url(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
]

from admin_honeypot import views
from django.urls import path, re_path

app_name = 'admin_honeypot'

urlpatterns = [
    path('login/', views.AdminHoneypot.as_view(), name='login'),
    re_path(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
]

Update url() to path() in the urlconf.
Update url() to path() in the urlconf.

  from admin_honeypot import views
- from django.conf.urls import url
+ from django.urls import path, re_path
  
  app_name = 'admin_honeypot'
  
  urlpatterns = [
-     url(r'^login/$', views.AdminHoneypot.as_view(), name='login'),
+     path('login/', views.AdminHoneypot.as_view(), name='login'),
-     url(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
+     re_path(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
  ]
  
Update url() to path() in the urlconf.
## Code Before:
from admin_honeypot import views
from django.conf.urls import url

app_name = 'admin_honeypot'

urlpatterns = [
    url(r'^login/$', views.AdminHoneypot.as_view(), name='login'),
    url(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
]

## Instruction:
Update url() to path() in the urlconf.
## Code After:
from admin_honeypot import views
from django.urls import path, re_path

app_name = 'admin_honeypot'

urlpatterns = [
    path('login/', views.AdminHoneypot.as_view(), name='login'),
    re_path(r'^.*$', views.AdminHoneypot.as_view(), name='index'),
]
