Uncaught TypeError: Cannot read properties of undefined (reading 'request')
at post (ajax-utils.js:24:21)
at HTMLFormElement.<anonymous> (management/:308:13)
# myblog_project/urls.py
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from rest_framework.routers import DefaultRouter
from blog.views import (
ArticleViewSet, UploadImageView, upload_video,
article_list_view, article_detail_view,
article_management_view, home_view
)
router = DefaultRouter()
router.register(r'articles', ArticleViewSet) # 注册文章API