"""
A simple wrapper library, that makes sure that the template
``fluent_blogs/entry_detail/comments.html`` can still be rendered
when ``django.contrib.comments`` is not included in the site.

This way, project authors can easily use an online commenting system
(such as DISQUS or Facebook comments) instead.
"""

# Expose the tag library in the site.
# If `django.contrib.comments` is not used, this library can provide stubs instead.
# Currently, the real tags are exposed as the template already checks for `object.comments_are_open`.
# When a custom template is used, authors likely choose the desired commenting library instead.

from django.contrib.comments.templatetags.comments import register

@@ -305,16 +305,104 @@
 ead.%0A%22%22%22
+%0Afrom django.template import Library%0Afrom fluent_utils.django_compat import is_installed
 %0A%0A# Expo
@@ -716,16 +716,64 @@
 stead.%0A%0A
+if is_installed('django.contrib.comments'):%0A    
 from dja
@@ -831,8 +831,140 @@
 egister%0A
+elif is_installed('django_comments'):%0A    from django_comments.templatetags.comments import register%0Aelse:%0A    register = Library()%0A

Support django-contrib-comments instead of django.contrib.comments for Django 1.8