old_contents: from smartmin.users.views import Login
  
  from django.conf import settings
  from django.conf.urls import url
  from django.contrib.auth.views import LogoutView
  
  from . import views
  
  logout_url = getattr(settings, "LOGOUT_REDIRECT_URL", None)
  
  urlpatterns = [
      url(r"^login/$", Login.as_view(), dict(template_name="smartmin/users/login.html"), name="users.user_login"),
      url(r"^logout/$", LogoutView.as_view(), dict(redirect_field_name="go", next_page=logout_url), name="users.user_logout"),
  ]
  
  urlpatterns += views.UserCRUDL().as_urlpatterns()
  
new_contents: from smartmin.users.views import Login
  
  from django.conf import settings
  from django.conf.urls import url
  from django.contrib.auth.views import LogoutView
  
  from . import views
  
  logout_url = getattr(settings, "LOGOUT_REDIRECT_URL", None)
  
  urlpatterns = [
      url(r"^login/$", Login.as_view(), dict(template_name="smartmin/users/login.html"), name="users.user_login"),
      url(r"^logout/$", LogoutView.as_view(),
          dict(redirect_field_name="go", next_page=logout_url), name="users.user_logout"),
  ]
  
  urlpatterns += views.UserCRUDL().as_urlpatterns()
  
subject: fix PEP8 error