add markdown

This commit is contained in:
2025-07-26 20:27:37 +08:00
parent 67bc42e862
commit 7bcc6460c4
6 changed files with 41 additions and 14 deletions

View File

@@ -35,8 +35,8 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'blog'
'blog',
'martor',
]
MIDDLEWARE = [

View File

@@ -17,7 +17,11 @@ Including another URLconf
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
# 添加martor的URL配置以支持Markdown编辑器
path('martor/', include('martor.urls')),
# 包含blog应用的URL
path('', include('blog.urls')),
]