- New apps/guides app with GuidePage model and audience mapping by wiki path - sync_guides management command: one-way read-only sync from wikijs DB - Read-only wikijs_ro DB role + WIKI_DB_* env config (secrets, gitignored) - Markdown rendering with bleach sanitisation; rewrites internal guide links to the portal help root and wiki image paths to WIKI_PUBLIC_BASE - /portal/help/ (buyer) and /ops/help/ (ops) index + detail views with role-based audience filtering (404 on cross-role guides) - Help nav item added to both portal base templates - Tests: audience filtering, markdown sanitisation, link rewriting, sync command
17 lines
842 B
Python
17 lines
842 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = 'portal'
|
|
|
|
urlpatterns = [
|
|
path("chat/", views.ChatView.as_view(), name="chat"),
|
|
path("chat/embed/", views.ChatEmbedView.as_view(), name="chat_embed"),
|
|
path('', views.DashboardView.as_view(), name='dashboard'),
|
|
path('batches/', views.BatchListView.as_view(), name='batch_list'),
|
|
path('batches/<uuid:pk>/', views.BatchDetailView.as_view(), name='batch_detail'),
|
|
path('documents/', views.DocumentListView.as_view(), name='document_list'),
|
|
path('subscription/', views.SubscriptionView.as_view(), name='subscription'),
|
|
path('compliance/', views.ComplianceView.as_view(), name='compliance'),
|
|
path('help/', views.GuideIndexView.as_view(), name='guide_index'),
|
|
path('help/<path:page_path>/', views.GuideDetailView.as_view(), name='guide_detail'),
|
|
]
|