我安裝了Django tiny mce,但是我在我的管理員中獲得了正常的文本區域。任何人都可以幫我糾正這一問題,我可以使用文本格式化的富文本區域?django tiny mce是普通文本字段而不是富文本格式?請修復。設置包括
這裏是我的settings.py
import os
PROJECT_DIR = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', '[email protected]'),
)
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'),
)
乾杯,這是正確的。 – Stu 2010-09-23 08:11:56