"""为应用程序users定义URL模式"""
from django.urls import path,re_path
from django.contrib.auth.views import LoginView
from . import views

urlpatterns = [
    #登录界面
    re_path(r'^login/$',LoginView.as_view(template_name='users/login.html'),
        name='login'),
    re_path(r'^logout/$',views.logout_view,name='logout'),
    re_path(r'^register/$',views.register,name='register'),
]