小编Fra*_*Sif的帖子

ImportError:无法导入名称“ get_default_renderer”

我在我的Django中安装了ckeditor应用程序,请在运行Runserver时按照ckeditor文档中的说明进行操作,但不起作用,好吧,from ckeditor.fields import RichTextField在将models.py 添加时出现错误

这是我的settings.py:

import os

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'suj4$h^8p&x#p_#i$_p&z@&d^46=#7kf6a#_tkqh68er^)872s'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = (
    'suit',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'blog',
    'ckeditor',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware', …
Run Code Online (Sandbox Code Playgroud)

python django ckeditor

4
推荐指数
2
解决办法
1679
查看次数

标签 统计

ckeditor ×1

django ×1

python ×1