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

Base url #32

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion disqus/management/commands/disqus_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down
4 changes: 2 additions & 2 deletions disqus/templatetags/disqus_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def disqus_dev():
if settings.DEBUG:
return """<script type="text/javascript">
var disqus_developer = 1;
var disqus_url = 'http://%s/';
</script>""" % Site.objects.get_current().domain
var disqus_url = '%s';
</script>""" % settings.DISQUS_URL
return ""

def disqus_num_replies(context, shortname=''):
Expand Down
4 changes: 2 additions & 2 deletions disqus/wxr_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -221,4 +221,4 @@ def comment_is_approved(self, comment):
return int(comment.is_public)

comment_parent = 0