danirus / django-comments-xtd

A pluggable Django comments application with thread support, follow-up notifications, mail confirmation, like/dislike flags, moderation, a ReactJS plugin and Bootstrap 5.3.
https://django-comments-xtd.readthedocs.io
BSD 2-Clause "Simplified" License
594 stars 157 forks source link

XtdComment fields not updating with correct values #319

Open abiatarfestus opened 3 years ago

abiatarfestus commented 3 years ago

Hi Danirus! I'm trying to implement django-comments-xtd on my blog for the first time. Almost everything seems to be well, but I'm experiencing a problem with how comments are associated with one another. I noticed that my comments were not threaded (indented) when rendered on the page, although I was able to post replies. I checked the database and all comments had the following values: 'thread_id': 0, 'level': 0, 'order': 1. I changed the values manually in the database to associate them properly, but although the order in which comments are rendered on the page change accordingly, they are still not indented. Any tips to fix this? I'm using the latest version of Xtdcomments, and MySQL db.

danirus commented 3 years ago

Hi @abiatarfestus, Check if you are not loading the bootstrap.min.css file in your base.html template. You need this line in your templates.

abiatarfestus commented 3 years ago

Thank you. I was loading the same file in the project already but version 5. I'm now loading the one you referred to, and it fixed the problem although it has broken/changed the styling in the rest of the project, which was based on v5.