'''为users定义URL'''
from django.urls import path
# from django.contrib.auth import login  新版改成下面的
from django.contrib.auth.views import LoginView


from . import views

urlpatterns = [
    # 登录页面
    # path('login/', login, {'template_name':'user/login.html'}, name='login'),
    path('login/', LoginView.as_view(template_name='users/login.html'),name='login'),
    # 注销
    path('logout/', views.logout_view, name='logout'),
    # 注册页面
    path('register', views.register, name='register')
]
