Add export into front
This commit is contained in:
15
core/urls.py
15
core/urls.py
@@ -1,10 +1,15 @@
|
||||
from django.urls import path
|
||||
from django.urls import path, include
|
||||
from . import views
|
||||
# 添加以下导入
|
||||
from django.contrib import admin
|
||||
|
||||
urlpatterns = [
|
||||
# 主页,文章列表
|
||||
path('', views.article_list, name='article_list'),
|
||||
# 文章详情
|
||||
path('article/<int:article_id>/', views.article_detail, name='article_detail'),
|
||||
# 后续可以加更多路径
|
||||
]
|
||||
path('run-crawler/', views.run_crawler, name='run_crawler'),
|
||||
# 新增:检查爬虫状态的路由
|
||||
path('crawler-status/', views.crawler_status, name='crawler_status'),
|
||||
# 添加导出文章的路由
|
||||
path('export-articles/', views.export_articles, name='export_articles'),
|
||||
# 添加自定义管理后台的路由
|
||||
]
|
||||
Reference in New Issue
Block a user