Installation
Install the package from PyPI:
pip install dj-editor-js
Add
editor_jsto yourINSTALLED_APPSinsettings.py:
# settings.py
INSTALLED_APPS = [
# ...
'editor_js',
]
Include the library’s URLs in your project’s
urls.py. These are required for the iframe and the image upload endpoint.
# your_project/urls.py
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('editor-js/', include('editor_js.urls')),
# ... your other urls
]