Django integrated DjangoUeditor editor didn't report an error, but it didn't work.

https://code.ziqiangxuetang.c.

django admin integrated DjangoUeditor editor based on teacher Tu Weizhong"s tutorial did not report an error, but it didn"t work

from django.contrib import admin

from .models import Column, Article
from DjangoUeditor.models import UEditorField

class ColumnAdmin(admin.ModelAdmin):
    list_display = ("name", "slug", "intro",)

class ArticleAdmin(admin.ModelAdmin):
    list_display = ("title", "slug", "author", "pub_date", "update_time")
    fields = (("title", "slug"), "column", "author", "content", "published")
    content = UEditorField("", height=300, width=1000,
        default=u"", blank=True, imagePath="uploads/images/",
        toolbars="besttome", filePath="uploads/files/")

from django.contrib import admin

from .models import Column, Article
from DjangoUeditor.models import UEditorField

class ColumnAdmin(admin.ModelAdmin):
    list_display = ("name", "slug", "intro",)

class ArticleAdmin(admin.ModelAdmin):
    list_display = ("title", "slug", "author", "pub_date", "update_time")
    fields = (("title", "slug"), "column", "author", "content", "published")
    content = 123


admin.site.register(Column, ColumnAdmin)
admin.site.register(Article, ArticleAdmin)

there is no response even if it is changed to this way

I add content = UEditorField ("content", height=300, width=1000, default=u"", blank=True, imagePath= "uploads/images/", toolbars="besttome", filePath="uploads/files/") to the model file, and the rich text editor works, but it doesn"t work in admin

Mar.20,2021

I made a mistake myself. It should have been written in model

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b39691-2c1aa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b39691-2c1aa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?