Skip to main content
django-disqus-sync
=================

This app is lightweight SEO optimizer for DISQUS comment system for your Django
application.

It features Django management command/Celery task to sync comments from DISQUS to
your database and to embed them to the page for web crawlers like Google. DISQUS
comment system is JS based and Google still has issues indexing it.

This app also features template tag to embed prerendered comments to your page.

Installation & usage
-----

First, install using pip:


```
pip install django-disqus-sync
```

Next, you need to create DISQUS app in order to be able to use their API to download
comments.

You can create your app here: https://disqus.com/api/applications/

Then, configure in your django `settings.py` using keys you were given:

```
DISQUS_API_KEY = '...'
DISQUS_API_SECRET = '...'
DISQUS_WEBSITE_SHORTNAME = '[NAME OF YOUR DISQUS FORUM HERE]'
```

Also make sure you have **some cache configured** since this apps needs it to
save queries and load temporary URL to THREAD list.

Next, you need to setup period updates of comments in your forum. Either set up
a cron to run management command:

```
manage.py disqus_sync
```

Or, you can use Celery to run it. Celery task should be auto-registered and you
only need to configure Celerybeat to fire it up from time to time.


Last, use the templatetag in your templates to embed comments:

```
{% load disqus_sync %}
{% render_disqus_comments %}
```

That's it, comments should be rendered to your page. **They will not be seen
in browser, because they are by default wrapped in "display: none;" div.**

You can override template used to render the comments by creating
`disqus_sync/comments.html`, `disqus_sync/comment.html` or both.

Metadata

Release files for django-disqus-sync 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-disqus-sync 1.0.3
File Size Uploaded Provenance
django-disqus-sync-1.0.3.tar.gz 13.5 kB Without provenance Details

Release files / django-disqus-sync-1.0.3.tar.gz

Download URL django-disqus-sync-1.0.3.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f4525d6cb41110e8792a8acd4190bcfd063593c4a7979d97ddb4d8c9caa44986
BLAKE2b-256 checksum
How to use checksums
3d01a1fbeb9e4738a649f960a25e0b3732a2bd392879fcf5986abd99c42648ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-disqus-sync 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file No provenance

1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page