django / django-contrib-comments

BSD 3-Clause "New" or "Revised" License
614 stars 196 forks source link

Ajax comments not working and looks like there are no changes from django_comments #120

Closed cromanstata closed 7 years ago

cromanstata commented 7 years ago

Runing django 1.11, python 3.6.1, jquery-2.2.0, jquery-ui 1.12.1 Followed the installation instructions, so my settings.py look like this:

INSTALLED_APPS = [
    'django_comments',
    'crispy_forms',
    'fluent_comments',
    'django.contrib.sites']
CRISPY_TEMPLATE_PACK = 'bootstrap3'
COMMENTS_APP = 'fluent_comments'
FLUENT_COMMENTS_EXCLUDE_FIELDS = ('email', 'url')

updated my urls and I have the template:

{% load comments static %}

<link rel="stylesheet" type="text/css" href="{% static 'fluent_comments/css/ajaxcomments.css' %}" />
<script type="text/javascript" src="{% static 'fluent_comments/js/ajaxcomments.js' %}"></script>

{% render_comment_list for recipe %}
{% render_comment_form for recipe %}

Where recipe is my object. So basically the only differences I see from just running django_comments are the excluded fields and being redirected to blog/comments/posted/?c= instead of comments/posted/?c= The ajaxcomments.js loads fine, no errors in the console.

So am I missing something here or it's some compatibility issue? my head looks like this: (I also tried jquery3.2.0)

 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css">
       <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap-theme.min.css">
        <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/smoothness/jquery-ui.css">

        <script src="https://code.jquery.com/jquery-2.2.0.min.js" integrity="sha256-ihAoc6M/JPfrIiIeayPE9xjin4UWjsx2mjW/rtmxLM4=" crossorigin="anonymous"></script>
        <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

Would very much appriciate any help or an update on compatibillty, thanks in advance.