Files
blogsite/blog/urls.py
T
xiaoan 89b4ed1642 加入「拾源」:想法 → GitHub 条件 → 仓库 → AI 解读与存档
- 新增 explore 应用:Idea / SearchSpec / Repository / Note 及迁移
- Ollama 生成 GitHub 检索条件(language / stars / topic / sort),并批量解读仓库简介
- 接入 GitHub 仓库搜索 REST API,结果入库并按想法关联
- 想法级与仓库级「我的其他思考」,支持多条添加与删除
- 新增存档页:按想法 / 有想法的仓库两个视角,跨想法合并仓库
- 前端 /explore/ 四步流程、条件展示、筛选器、AI 解读目录、?idea= 恢复现场
- settings 增加 OLLAMA_* / GITHUB_* 配置
2026-11-20 17:29:38 +08:00

21 lines
719 B
Python

# blog/urls.py
from django.urls import path, register_converter
from . import views
from .converters import UnicodeSlugConverter
register_converter(UnicodeSlugConverter, 'unislug')
app_name = 'blog'
urlpatterns = [
path('', views.category_list, name='category_list'),
# ✅ 用 unislug 替代 slug
path('category/<unislug:slug>/', views.category_detail, name='category_detail'),
path('post/<slug:slug>/', views.post_detail, name='post_detail'),
path('tag/<unislug:slug>/', views.tag_detail, name='tag_detail'),
path('about/', views.about_page, name='about'),
path('explore/', views.explore, name='explore'),
path('explore/archive/', views.explore_archive, name='explore_archive'),
]