您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

12 行
338 B

  1. from django.conf.urls import url
  2. from users.views import login_user
  3. from . import views
  4. urlpatterns = [
  5. url(r'^private/$', views.private, name='private'),
  6. url(r'^register/$', views.CreateUser.as_view(), name='register'),
  7. url(r'^login/$', login_user, name='login'),
  8. url(r'^logout/$', views.logout_user, name='logout'),
  9. ]