
from django.conf.urls import patterns, url

from . import views

urlpatterns = patterns("",
    url(r"^login/(?P<uuid>[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12})/$", views.LOTLogin.as_view(), name="login"),
)


from django.conf.urls import url

from . import views

urlpatterns = [
    url(r"^login/(?P<uuid>[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12})/$", views.LOTLogin.as_view(), name="login"),
]

Update to new-style urlpatterns format
Update to new-style urlpatterns format

  
- from django.conf.urls import patterns, url
+ from django.conf.urls import url
  
  from . import views
  
- urlpatterns = patterns("",
+ urlpatterns = [
      url(r"^login/(?P<uuid>[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12})/$", views.LOTLogin.as_view(), name="login"),
- )
+ ]
  
Update to new-style urlpatterns format
## Code Before:

from django.conf.urls import patterns, url

from . import views

urlpatterns = patterns("",
    url(r"^login/(?P<uuid>[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12})/$", views.LOTLogin.as_view(), name="login"),
)

## Instruction:
Update to new-style urlpatterns format
## Code After:

from django.conf.urls import url

from . import views

urlpatterns = [
    url(r"^login/(?P<uuid>[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12})/$", views.LOTLogin.as_view(), name="login"),
]
