add 后台管理页面
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,10 @@
|
||||
from django.urls import path, include,re_path
|
||||
from jump.views import to_index,to_register,to_login
|
||||
from jump.views import to_index,to_register,to_login,to_adminAccess
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
path('', to_index, name="index_jump"), # 跳转首页界面
|
||||
path('login', to_login, name="login_jump"), # 跳转到登录页面
|
||||
path('register',to_register, name = "register_jump"), # 跳转到注册页面
|
||||
path('adminAccess ',to_adminAccess, name="adminAccess_jump"), # 跳转到后台管理
|
||||
]
|
||||
@@ -27,4 +27,10 @@ def to_register(request):
|
||||
"""
|
||||
注册页面
|
||||
"""
|
||||
return render(request,"html/register.html")
|
||||
return render(request,"html/register.html")
|
||||
|
||||
def to_adminAccess(request):
|
||||
"""
|
||||
后台管理
|
||||
"""
|
||||
return render(request,"html/adminAccess.html")
|
||||
Reference in New Issue
Block a user