<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>django_yaba/templatetags/get_setting.py</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -11,3 +11,4 @@ db/
 blog/fixtures
 django_yaba.egg-info
 dist
+build</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,6 @@ from tagging.fields import TagField
 from tagging.models import Tag
 from django.conf import settings
 from django.db.models.signals import post_save, pre_save
-from django.contrib.comments.views import comments
-from django_yaba.comments import wrapped_post_comment
 from django.db.models import permalink
 from django_yaba.fields import ThumbnailImageField
 from django.contrib.auth.models import User
@@ -262,7 +260,6 @@ def config_name(sender, instance, created, **kwargs):
                 &quot;There can only be one configuration entry, \
                 thus only one theme. Sorry!&quot;)     
 
-comments.post_comment = wrapped_post_comment
 
 post_save.connect(config_name, sender=Configuration)
 post_save.connect(post_tweet, sender=Article)</diff>
      <filename>django_yaba/models.py</filename>
    </modified>
    <modified>
      <diff>@@ -32,8 +32,19 @@
   &lt;!-- stop social media --&gt;
   &lt;!-- start comments --&gt;
   &lt;hr /&gt;
-{% load disqus_tags %}
-{% disqus_show_comments %}
+{% load get_setting %}
+{% get_setting &quot;DJANGO_COMMENTS&quot; &quot;django_comments&quot; %}
+  {% if django_comments %}
+    {% load comments %}
+    {% get_comment_list for posts as post_comments %}
+    {% for comment in post_comments %}
+      {{ comment }}
+    {% endfor %}
+    {% render_comment_form for posts %} 
+  {% else %}
+    {% load disqus_tags %}
+    {% disqus_show_comments %}
+  {% endif %}
   &lt;!-- end comments --&gt;
 {% else %}
 &lt;p&gt; Sorry, nothing seems to exist here. Please try one of the many other links instead&lt;/p&gt;</diff>
      <filename>django_yaba/templates/blog/article_detail.html</filename>
    </modified>
    <modified>
      <diff>@@ -51,8 +51,19 @@
   &lt;!-- stop social media --&gt;
   &lt;hr /&gt;
   &lt;!-- start comments --&gt;
-{% load disqus_tags %}
-{% disqus_show_comments %}
+{% load get_setting %}
+{% get_setting &quot;DJANGO_COMMENTS&quot; &quot;django_comments&quot; %}
+  {% if django_comments %}
+    {% load comments %}
+    {% get_comment_list for posts as post_comments %}
+    {% for comment in post_comments %}
+      {{ comment }}
+    {% endfor %}
+    {% render_comment_form for posts %} 
+  {% else %}
+    {% load disqus_tags %}
+    {% disqus_show_comments %}
+  {% endif %}
   &lt;!-- end comments --&gt;
 &lt;/div&gt;
 {% endif %}</diff>
      <filename>django_yaba/templates/blog/gallery.html</filename>
    </modified>
    <modified>
      <diff>@@ -45,9 +45,17 @@
          &lt;hr /&gt;
          &lt;!-- stop social media --&gt;
          &lt;!-- start comments --&gt;
-         {% load disqus_tags %}
-           &lt;a href=&quot;{{ post.get_absolute_url }}#disqus_thread&quot;&gt;View Comments&lt;/a&gt;
-           {% disqus_num_replies %}
+         {% load get_setting %}
+         {% get_setting &quot;DJANGO_COMMENTS&quot; &quot;django_comments&quot; %}
+         {% if django_comments %}
+           {% load comments %}
+           {% get_comment_count for post as post_count %}
+           &lt;a href=&quot;{{ post.get_absolute_url }}&quot;&gt;{{ post_count }} Comments&lt;/a&gt;
+         {% else %}
+           {% load disqus_tags %}
+             &lt;a href=&quot;{{ post.get_absolute_url }}#disqus_thread&quot;&gt;View Comments&lt;/a&gt;
+             {% disqus_num_replies %}
+         {% endif %}
          &lt;!-- end comments --&gt;
        &lt;/div&gt;
        &lt;hr /&gt;</diff>
      <filename>django_yaba/templates/blog/gallery_list.html</filename>
    </modified>
    <modified>
      <diff>@@ -31,8 +31,19 @@
   &lt;!-- stop social media --&gt;
   &lt;hr /&gt;
   &lt;!-- start comments --&gt;
-  {% load disqus_tags %}
-{% disqus_show_comments %}
+{% load get_setting %}
+{% get_setting &quot;DJANGO_COMMENTS&quot; &quot;django_comments&quot; %}
+  {% if django_comments %}
+    {% load comments %}
+    {% get_comment_list for posts as post_comments %}
+    {% for comment in post_comments %}
+      {{ comment }}
+    {% endfor %}
+    {% render_comment_form for posts %} 
+  {% else %}
+    {% load disqus_tags %}
+    {% disqus_show_comments %}
+  {% endif %}
   &lt;!-- end comments --&gt;
 &lt;/div&gt;
 {% endblock %}</diff>
      <filename>django_yaba/templates/blog/story_detail.html</filename>
    </modified>
    <modified>
      <diff>@@ -51,9 +51,17 @@
          &lt;hr /&gt;
          &lt;!-- stop social media --&gt;
          &lt;!-- start comments --&gt;
-         {% load disqus_tags %}
-           &lt;a href=&quot;{{ post.get_absolute_url }}#disqus_thread&quot;&gt;View Comments&lt;/a&gt;
-           {% disqus_num_replies %}
+         {% load get_setting %}
+         {% get_setting &quot;DJANGO_COMMENTS&quot; &quot;django_comments&quot; %}
+         {% if django_comments %}
+           {% load comments %}
+           {% get_comment_count for post as post_count %}
+           &lt;a href=&quot;{{ post.get_absolute_url }}&quot;&gt;{{ post_count }} Comments&lt;/a&gt;
+         {% else %}
+           {% load disqus_tags %}
+             &lt;a href=&quot;{{ post.get_absolute_url }}#disqus_thread&quot;&gt;View Comments&lt;/a&gt;
+             {% disqus_num_replies %}
+         {% endif %}
          &lt;!-- end comments --&gt;
        &lt;/div&gt;
        &lt;hr /&gt;</diff>
      <filename>django_yaba/templates/blog/story_list.html</filename>
    </modified>
    <modified>
      <diff>@@ -53,9 +53,18 @@
          &lt;hr /&gt;
          &lt;!-- stop social media --&gt;
          &lt;!-- start comments --&gt;
-         {% load disqus_tags %}
-           &lt;a href=&quot;{{ post.get_absolute_url }}#disqus_thread&quot;&gt;View Comments&lt;/a&gt;
-           {% disqus_num_replies %}
+         {% load get_setting %}
+         {% get_setting &quot;DJANGO_COMMENTS&quot; &quot;django_comments&quot; %}
+         {% if django_comments %}
+           {% load comments %}
+           {% get_comment_count for post as post_count %}
+           &lt;a href=&quot;{{ post.get_absolute_url }}&quot;&gt;{{ post_count }} Comments&lt;/a&gt;
+         {% else %}
+           {% load disqus_tags %}
+             &lt;a href=&quot;{{ post.get_absolute_url }}#disqus_thread&quot;&gt;View Comments&lt;/a&gt;
+             {% disqus_num_replies %}
+         {% endif %}
+
          &lt;!-- end comments --&gt;
        &lt;/div&gt;
        &lt;hr /&gt;</diff>
      <filename>django_yaba/templates/blog/story_search.html</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,13 @@
 &lt;link href=&quot;media/css/patch_layout.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
 &lt;![endif]--&gt;
 &lt;script type=&quot;text/javascript&quot;    src=&quot;{{ MEDIA_URL }}js/slide.js&quot;&gt;&lt;/script&gt;
-            {% load disqus_tags %}
+{% load get_setting %}
+{% get_setting &quot;DJANGO_COMMENTS&quot; &quot;django_comments&quot; %}
+  {% if django_comments %}
+    {% load comments %}
+  {% else %}
+    {% load disqus_tags %}
+  {% endif %}
 
 &lt;/head&gt;
 &lt;body&gt;</diff>
      <filename>django_yaba/templates/blog_base.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 from django.conf.urls.defaults import *
+from django.conf import settings
 from django.contrib.syndication.views import feed
 from django_yaba.models import Links
 from django_yaba.feeds import RSSFeed
@@ -23,3 +24,8 @@ urlpatterns += patterns('',
     url(r'^feeds/(?P&lt;url&gt;.*)/$', feed, {'feed_dict': {'rss': RSSFeed}}),
     url(r'^links/$', 'links', {'link_dict': {'links': Links}}),
 )
+
+if settings.DJANGO_COMMENTS:
+    urlpatterns += patterns('',
+        (r'^comments/', include('django.contrib.comments.urls')),
+    )</diff>
      <filename>django_yaba/urls.py</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ setup(
     author_email = &quot;f4nt@f4ntasmic.com&quot;,
     url = &quot;http://www.f4ntasmic.com&quot;,
     
-    packages = find_packages('src'),
+    packages = find_packages('.'),
     package_dir = {'':'.'},
     data_files = media_files,
     package_data = {
@@ -32,10 +32,7 @@ setup(
         'python-twitter',
         'twitter',
         'simplejson',
-        'Django',
-        'South',
         'feedparser',
-        'django_test_extensions',
         'django-disqus',
         'django-tagging',
     ],</diff>
      <filename>setup.py</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>django_yaba/captcha.py</filename>
    </removed>
    <removed>
      <filename>django_yaba/comments.py</filename>
    </removed>
    <removed>
      <filename>django_yaba/templates/comments/posted.html</filename>
    </removed>
    <removed>
      <filename>django_yaba/templates/comments/preview.html</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>6392ad0f3a6cb0219faff07bc918b50271be624b</id>
    </parent>
  </parents>
  <author>
    <name>f4nt</name>
    <email>markr@imagescape.com</email>
  </author>
  <url>http://github.com/f4nt/django-yaba/commit/06a15d7f4ba56415a2b7aea45c171254fac4b06a</url>
  <id>06a15d7f4ba56415a2b7aea45c171254fac4b06a</id>
  <committed-date>2009-10-30T13:57:21-07:00</committed-date>
  <authored-date>2009-10-30T13:57:21-07:00</authored-date>
  <message>adding the ability to use contrib.comments OR disqus based on a setting</message>
  <tree>5424a49280a41149b82c7c515719d39852e4c483</tree>
  <committer>
    <name>f4nt</name>
    <email>markr@imagescape.com</email>
  </committer>
</commit>
