V
V
Vlad5152016-08-22 17:56:13
JavaScript
Vlad515, 2016-08-22 17:56:13

How to implement tree comments in django using tinymce/ckeditor?

Good day to all.
I must say right away that there is still little experience, but it is necessary to set the right path.
There is a blog on django, I want to implement tree-like comments in it so that I can reply with a comment to a comment. If you take ready-made solutions like django-threadedcomments, comments work as I need without including tinymce/ckeditor, but if you enable tinymce/ckeditor, it is the response with a comment to a comment that stops working, it is simply impossible to write anything in the text field.
I myself do not consider the option to write from scratch yet, tk. I don’t know where to dribble and I’m looking for something more of a boxed version with the ability to finish it to my needs.
Also, I don’t consider the option without tinymce / ckeditor, because. it is necessary that everyone can choose the style of writing a comment.
The option of commenting through authorization from social networks is also not an option, because. it is necessary that only users who have registered in advance can leave them.
I would also be grateful if you could tell me how to implement image loading using django + tinymce/ckeditor.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
werevolff, 2016-08-22
@werevolff

Django is not a CMS. It's not Joomla, it's not WordPress. There are no excuses like "I'm too lazy to write this." We put treebeard or mptt, we implement the comment model. If necessary, we make a REST interface for displaying a tree, in JS we add the ability to set the comment id to a variable when clicking on "reply". Open tinymce/ckeditor, send parent id and message text when submitting.
django-threadedcomments only implements a model and a bunch of templatetags. Absolutely not the django way. How are you going to solve the problem if you are too lazy to open the query analyzer and see what is sent to the server? Why doesn't parent_id go away?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question