You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.6 KiB
39 lines
1.6 KiB
"""test_Bootstrap URL Configuration
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/3.2/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.urls import include, path
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
"""
|
|
from app_test import views
|
|
from django.contrib import admin
|
|
from django.urls import path
|
|
|
|
# 定义命名空间
|
|
# app_name = 'test_Bootstrap'
|
|
urlpatterns = [
|
|
# path('admin/', admin.site.urls),
|
|
path('index/', views.index),
|
|
path('streamlit/', views.streamlit_test, name='streamlit'),
|
|
path('login/', views.lg_login, name='login'),
|
|
path('logout/', views.lg_logout, name='logout'),
|
|
path('register/', views.register, name='register'),
|
|
path('auth/captcha/', views.sender_email_captcha),
|
|
path('update/', views.update),
|
|
path('api/get_current_user/', views.get_current_user, name='get_current_user'),
|
|
path('add_fund/', views.add_fund, name='add_fund'),
|
|
path('delete_fund/<int:fund_id>/', views.delete_fund, name='delete_fund'),
|
|
path('api/add-fund/', views.add_fund, name='add-fund'),
|
|
path('api/csrf-token/', views.get_csrf_token_view, name='csrf-token'),
|
|
path('api/get_token/', views.get_token, name='get_token'),
|
|
|
|
]
|