Skip to main content

A collection of useful, non-WordPress extensions for django-wordpress (the real one).

pip install the-real-django-wordpress-extras

Add wordpressext to INSTALLED_APPS in settings.py.

Be sure to put wordpressext above wordpress in urls.py:

urlpatterns += patterns('',
    ...
    url(r'^blog/', include('wordpressext.urls')),
    url(r'^blog/', include('wordpress.urls')),
    ...
)

Email sender is determined in the following order:

  1. settings.WPEXT_SENDER email address

  2. settings.POSTMARK_SENDER if Postmark settings are configured and WPEXT_SENDER does not exist

  3. settings.ADMINS the first admin email address, if POSTMARK_SENDER does not exist

Features

Parse.ly Meta Template Tag

Generate a Parse.ly meta tag:

{% parselymeta post %}

Disqus Comment Notifications

It’s the only feature for now! And it’s only half implemented!

If you use Disqus for comments, you can provide a post-comment JavaScript hook to notify post authors of the new comment. Here is some example JavaScript you can do enable comment notifications:

var newComment = function(comment) {
    var url = window.location.href + "disqus/";
    var params = {
        id: comment.id,
        text: comment.text,
        csrfmiddlewaretoken: csrftoken  // you'll have to get this from somewhere
    };
    $.post(url, comment, function(data) {
        // don't really need to do anything
    });
};

var disqus_config = function() {
    this.callbacks.onNewComment = [function(comment) { newComment(comment); }];
};

The comment endpoint is located at <path_to_blog>/<year>/<month>/<day>/<slug>/disqus/. It accepts the following POST parameters:

  • id the Disqus ID of the comment

  • text the text of the comment

  • csrfmiddlewaretoken a CSRF token, if protection is enabled

Refer to the onNewComment callback on how to implement your own.

Future versions will connect with the Disqus API to do various things.

Release files for the-real-django-wordpress-extras 0.4

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

Source distribution (sdist)

Source distribution for the-real-django-wordpress-extras 0.4
File Size Uploaded
the-real-django-wordpress-extras-0.4.tar.gz 4.6 kB Details

Release files / the-real-django-wordpress-extras-0.4.tar.gz

Download URL the-real-django-wordpress-extras-0.4.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
24ea0465c33d233025d45d1671db716e19bbf4f554a06dc909f35747392e686e
BLAKE2b-256 checksum
How to use checksums
789456106ab2a780bf7cf621644cf864ac5b77fa6d111d3278f25d00bdff34e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

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