diff --git a/disqus/management/commands/disqus_export.py b/disqus/management/commands/disqus_export.py index f7f3f4a..f616d7d 100644 --- a/disqus/management/commands/disqus_export.py +++ b/disqus/management/commands/disqus_export.py @@ -51,7 +51,7 @@ def _save_state(self, state_file, last_pk): fp.close() def handle(self, **options): - current_site = Site.objects.get_current() + current_site = settings.DISQUS_URL client = DisqusClient() verbosity = int(options.get('verbosity')) dry_run = bool(options.get('dry_run')) diff --git a/disqus/templatetags/disqus_tags.py b/disqus/templatetags/disqus_tags.py index 45364dd..4b76c6c 100644 --- a/disqus/templatetags/disqus_tags.py +++ b/disqus/templatetags/disqus_tags.py @@ -74,8 +74,8 @@ def disqus_dev(): if settings.DEBUG: return """""" % Site.objects.get_current().domain + var disqus_url = '%s'; +""" % settings.DISQUS_URL return "" def disqus_num_replies(context, shortname=''): diff --git a/disqus/wxr_feed.py b/disqus/wxr_feed.py index 87e7661..5d0dac9 100644 --- a/disqus/wxr_feed.py +++ b/disqus/wxr_feed.py @@ -100,7 +100,7 @@ class BaseWxrFeed(Feed): feed_type = WxrFeedType def get_feed(self, obj, request): - current_site = Site.objects.get_current() + current_site = settings.DISQUS_URL link = self._Feed__get_dynamic_attr('link', obj) link = add_domain(current_site.domain, link) @@ -221,4 +221,4 @@ def comment_is_approved(self, comment): return int(comment.is_public) comment_parent = 0 - \ No newline at end of file +