<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=338168267432629&amp;ev=PageView&amp;noscript=1">
Programming

django-articles and DISQUS

Django-articles (articles) is a fully-featured blog engine. This is useful for those who wish to set up a blog that’s tightly coupled to an existing site, or those who simply wish to have their own Django-based blog or public blog site. Django-articles has recently moved from the in-house django.contrib.comments onto …


{%- set hs_blog_post_body -%} {%- set in_blog_post_body = true -%}

Django-articles (articles) is a fully-featured blog engine. This is useful for those who wish to set up a blog that’s tightly coupled to an existing site, or those who simply wish to have their own Django-based blog or public blog site.

Django-articles has recently moved from the in-house django.contrib.comments onto Disqus. In order to use this functionality, you’ll need to register your site with Disqus. One setback is that Disqus provides no sandboxing method, so you’ll probably end up with one development site and one production site, both of which would need referable IP’s.

http://docs.disqus.com/help/4/

———

Install:

1. pip install django-articles

2. add ‘articles’ to installed apps.

( Among other things, django-articles also needs the following installed: )

’django.contrib.admin’,
’django.contrib.auth’,
’django.contrib.contenttypes’,
’django.contrib.humanize’,
’django.contrib.markup’,
’django.contrib.sessions’,
’django.contrib.sites’,
’django.contrib.syndication’,

3. python manage.py syncdb

4. DISUS Configuration:

DISQUS_FORUM_SHORTNAME

5. verify these context processors are included:

(these are default)

django.contrib.auth.context_processors.auth
django.core.context_processors.i18n
django.core.context_processors.media
django.core.context_processors.request

6. For illustration purposes, I used this base.html:

{% block extra-head %}{% endblock %}

{% block meta-keywords %}{% endblock %}
{% block content %}{% endblock %}
{% block footer %}{% endblock %}

7. Finally, the url has to be set up. This configuration is most likely different from what you’ll eventually use in production, but it gives you a general idea of what django-articles can provide.

{%- endset -%} {%- set hs_blog_post_summary -%}

Django-articles (articles) is a fully-featured blog engine. This is useful for those who wish to set up a blog that’s tightly coupled to an existing site, or those who simply wish to have their own Django-based blog or public blog site.

{%- endset -%} {%- blog_post_data_wall_wrapper body={{hs_blog_post_body}}, summary={{hs_blog_post_summary}} %}

Similar posts

Get notified about the latest in Tech

Be the first to know about new tech from the experts at Bixly!