[Django APP] django-ckeditor

[ckeditor Install]


pip install django-ckeditor
(리치에디터 앱)

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')),
]

댓글

이 블로그의 인기 게시물

[Django Install] 11. Install Python3 for Centos8/RedhatLinux8

[windows] filebeat 스케쥴링 테스트

[sqlite] error 조치