J'ai installé Django tiny mce mais je reçois une zone de texte normale dans mon admin. Quelqu'un peut-il m'aider à corriger cela dans une zone de texte riche où je peux accéder au formatage de texte?django tiny mce est un champ de texte normal au lieu d'un formatage de texte enrichi? un correctif s'il vous plaît. Paramètres inclus
voici mon 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'),
)
Bravo, c'est correct. – Stu