Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cromanstata opened this issue May 13, 2017 · 1 comment

Comments

@cromanstata
Copy link

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.

@wfehr
Copy link

wfehr commented Jun 20, 2017

I think the problem is the order of "INSTALLED_APPS".
Try putting "django_comments" below "fluent_comments".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants