Disqus extension for EB

21 views
Skip to first unread message

Cromulent

unread,
May 4, 2012, 4:17:35 PM5/4/12
to Django FeinCMS
This is mentioned on the Github page but I see no code for it in the
Extensions folder. Am I missing something?

sbaechler

unread,
May 5, 2012, 5:15:15 AM5/5/12
to django-...@googlegroups.com
It used to be in the templates (commented out), but it must have gotten removed at some point because it was annoying when you didn't use disqus.

Now we just use the javascript API for disqus. Just add the code to your templates.

Regards
Simon

Cromulent

unread,
May 5, 2012, 8:37:11 AM5/5/12
to Django FeinCMS
Would using django-disqus be any easier? Or do you have a code example
to point me to?

sbaechler

unread,
May 6, 2012, 8:26:19 AM5/6/12
to django-...@googlegroups.com
In fact I used django-disqus. If you browse back in time you'll see the disqus template tag in the code and the docs:


Regards
Simon

Cromulent

unread,
May 6, 2012, 9:14:45 AM5/6/12
to Django FeinCMS
I looked and still can't find it. I thought it would be under
Extensions or Templatetags.

I got Disqus comments working by just inserting the Disqus Universal
Code after the

{% feincms_render_region object "main" request %}

line in entry_detail.html. I don't like doing it that way though.
Feels very un-Djangonic. Un-Pythonic too. Plus then I'm tied to the
URL. And one of my goals is to fiddle with EB to change the URL
structure from

mysite.net/blog/year/month/day/myslug/

to

mysite.net/blog/myslug/

Tying Disqus to the URL makes this harder. I understand the Disqus
docs on how to change this - its pretty simple. But the best way to
implement this in EB is not so clear to me. I suspect letting django-
disqus do the grunt work will make the transition easier. At this
point I offer thanks for pointing me to an older point in the code
tree; as a django/python greenhorn I find it much easier to
comprehend. Makes me feel less incompetent.

Dave

On May 6, 8:26 am, sbaechler <stbaech...@gmail.com> wrote:
> In fact I used django-disqus. If you browse back in time you'll see the
> disqus template tag in the code and the docs:
>
> https://github.com/feincms/feincms-elephantblog/tree/40f7ee7e9fb2ec3a...
>
> Regards
> Simon
Reply all
Reply to author
Forward
0 new messages