Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use disqus

  • Loading branch information...
commit d6a7b7d8dc881776be32d59819a4c4f16757216f 1 parent aa9bfcd
@justquick authored
Showing with 9 additions and 5 deletions.
  1. +6 −2 settings.py
  2. +3 −3 templates/blog/post_detail.html
View
8 settings.py
@@ -121,12 +121,11 @@
'native_tags',
'staff',
'template_utils',
- 'mptt',
- 'mptt_comments',
'frontendadmin',
'categories',
'requirements',
'terminal',
+ 'disqus',
'tinymce',
'tagging',
@@ -234,6 +233,11 @@ def get_images():
CACHE_BACKEND = 'locmem:///'
+
+
+DISQUS_API_KEY = 'RdfJzDjsWza71kshQMJ8zhjYCoVto3BTROM5eJL87y3va3aMhfKNpQ3R9yLWalUq'
+DISQUS_WEBSITE_SHORTNAME = 'effervescentcollective'
+
try:
from local_settings import *
except ImportError:
View
6 templates/blog/post_detail.html
@@ -1,11 +1,11 @@
{% extends "blog/base_blog.html" %}
-{% load i18n mptt_comments_tags frontendadmin_tags %}
+{% load i18n disqus_tags frontendadmin_tags %}
{% block title %}{{ object.title }}{% endblock %}
{% block body_class %}{{ block.super }} post_detail{% endblock %}
{% block body_id %}post_{{ object.id }}{% endblock %}
-{% block extrahead %}{% mptt_comments_media %}{% endblock %}
+{% block extrahead %}{% disqus_dev %}{% endblock %}
{% block content_title %}{{ object.title }}{% endblock %}
@@ -21,7 +21,6 @@
{{ object.body|safe }}
</div>
-{% display_comment_toplevel_for object %}
{% tags_for_object object as tag_list %}
{% if tag_list %}
@@ -32,6 +31,7 @@
</p>
{% endif %}
+{% disqus_show_comments %}
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.