Help With Setting Up Django Editorjs Fields #66
Unanswered
chaitanyavaddi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Guys!
I'm build an app that lets users create posts.
I decided to go with Django, glad that I found django-editorjs-fields package.
However, after setting up exactly as mentioned in the documentation, I'm not seeing editorjs in frontend.
Here's how I did.
Settings.py: Installed Apps:

Setting.py: Static Root & Static DIRS

Model

Static_root Folder (for all collectstaic) is at manage.py level in folder structure

Static Directory at manage.py level

Views.py - For testing I hardcoded user primary key as 2

Template Implementation
Frontpage.html inherits base.html
Inside base.html tag I added below
But in frontend, I'm seeing body_default value but no editor is seen.
Below is the text in frontend, and it is not editable.
Part of Pages Table:

Kindly help me out on what's wrong with my code.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions