3242

作者: zzz · 发布日期: 2025年07月06日 · 分类: python
文章主图

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

评论

用户A

2025年7月5日

这篇文章写得太棒了!Tailwind CSS确实是前端开发的利器。

用户B

2025年7月5日

感谢分享,学到了很多实用的技巧!

发表评论