初步框架搭建

This commit is contained in:
2024-09-03 20:57:22 +08:00
parent 808b211882
commit d32e0000ba
947 changed files with 159376 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
from django.urls import path, include,re_path
from server_auth.views import LoginView,LogoutView,RegisterView
urlpatterns = [
# re_path(r'^index/$',views.IndexView.as_view()),
# re_path(r'^login/$', views.login),
path('register', RegisterView.as_view()), # 用户注册
path('login', LoginView.as_view()), # 用户登录
path('logout', LogoutView.as_view()), # 用户登出
]