Ai_Admin/website/urls.py

36 lines
1.4 KiB
Python
Raw Normal View History

2024-06-05 05:10:50 +08:00
"""
URL configuration for website project.
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.0/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 django.contrib import admin
from django.urls import path, include
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
# path('admin/', admin.site.urls),
path('myapp/', include('MyApi.urls')), # 包含myapp应用的URL配置
path('admin/', include('MyWeb.urls')), # 包含myapp应用的URL配置
2024-10-18 21:17:49 +08:00
path('ON6tV9YE1M.txt', views.acme_challenge),
2024-06-05 05:10:50 +08:00
path('download/', views.download_proxy, name='download_proxy'),
path('proxy/', views.ProxyView.as_view(), name='proxy'),
2024-10-18 21:17:49 +08:00
path('api/check_status/', views.check_status, name='check_status'),
path('pay/', views.pay, name='pay'),
2024-06-05 05:10:50 +08:00
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)