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

13 行
288 B

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