Ckeditor在管理中显示richtextfield?

2024-06-26 09:45:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在django管理中放置一个html格式的文本。我按照指示去发球台。但是由于某种原因它没有恢复?我错过了什么?在

这是设置.py-在

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'skoolprofile',
    'django.contrib.sites',
    'disqus',
    'django.contrib.sitemaps',
    'easy_maps',
    'hitcount',
    'accounts',
    'localflavor',
    'crispy_forms',
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
    'allauth.socialaccount.providers.facebook',
    'autoslug',
    'storages',
    'compressor',
    'activities',
    'tastypie',
    'ckeditor',
]

AWS_QUERYSTRING_AUTH = False
CKEDITOR_CONFIGS = {
    'awesome_ckeditor': {
        'toolbar': 'Basic',
    },
}
CKEDITOR_UPLOAD_PATH = "uploads/"
CKEDITOR_JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'

给你模型.py-在

^{pr2}$

这里是管理员-

admin.site.register(adalerts)

我做了Python管理.py收集静态。我做过迁徙和迁徙。然而在管理领域里没有幸运的richtextField“描述”。我仍然看到一个文本框。在


Tags: installeddjangopy文本ckeditoradminhtml格式