我安装了 Django tiny mce,但是我在我的管理员中得到了一个普通的文本区域。任何人都可以帮助我将其更正为我可以访问文本格式的富文本区域吗?
这是我的settings.py
import os
PROJECT_DIR = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
...
...
...
...
...
...
...
...
...
...
...
...
...
...
TINYMCE_JS_URL = '/media/js/tiny_mce/tiny_mce.js/'
# languages you want to translate into the CMS.
DEFAULT_PAGE_TEMPLATE = 'pages/generic.html'
PAGE_TEMPLATES = (
('pages/generic.html', 'Generic'),
('pages/index.html', 'Home Page'),
('pages/people.html', 'People'),
)