[Django APP] django-ckeditor
[ckeditor Install]
pip install django-ckeditor
(리치에디터 앱)
add to settings.py
# django-ckeditor Settings
(리치에디터 앱)
add to settings.py
INSTALLED_APPS = [
'ckeditor',
'ckeditor_uploader',
]
# django-ckeditor Settings
CKEDITOR_UPLOAD_PATH = "uploads/"
CKEDITOR_BASEPATH = "/static/ckeditor/ckeditor/"
CKEDITOR_CONFIGS = {
'default': {
'toolbar': 'full',
},
}
add to projectname/projectname/urls.py
from django.urls import include
urlpatterns = [
path('ckeditor/', include('ckeditor_uploader.urls')),
]
댓글
댓글 쓰기