Django CKEditor install with youtube and code spinet plugins

Hemanth S P
Django lions ✨
Published in
4 min readMar 26, 2020

--

install ckeditor in django
Photo by Emma Matthews Digital Content Production on Unsplash

I am going to show you how to install Django step by step:

1. First is to create one simple Django project and one app like Django document suggest using virtual env

2. once the project is up and running in the local host.

3. install CKEditor using pip

pip install django-ckeditor

4. Next, update the installed apps in setting.py in a project to know Django about our installation

INSTALLED_APPS = [ '
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'ckeditor', # <--- here
'ckeditor_uploader', # <--- here
'polls.apps.PollsConfig',
]

5. I am using s3 to store static files like js, CSS, and images and media folder to save user-uploaded media file files such as images and mp3 files,

CKEDITOR_JQUERY_URL = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js' CKEDITOR_UPLOAD_PATH = "uploadsCK/" # <-- this folder you uploaded image saved in s3 under media folder 
CKEDITOR_RESTRICT_BY_USER = True

6. This is my simple s3 setting in my project for your reference and makes sure your bucket is public

--

--