0
votes

I'm new to Stack Overflow, so I'm sorry if my question is too naive. I'm building a Django based website on Heroku, and I've added the Disqus comment system using django-disqus. Users can also login on my site, so naturally I don't want them to enter login details again when the post comments with Disqus - I want the user to get registered with Disqus automatically (at least the Name+Email form should fill after inferring details of the user from request.user).

I found some stuff online to do this (they all suggested the same thing): Here. They say that I must put the following in the program's Javascript code, before the Disqus iframe renders:

var disqus_def_name = "{{ user.get_full_name}}";
var disqus_def_email = "{{ user.email }}";

If you check here, the Javascript configuration is specified in the same block as embed.js. Since I'm using Django, that code is subsumed by my templatetags, so I must add the above (name and email) configurations to some other JS block. I added it to the first main block, but it isn't working. Any help would be appreciated!

1

1 Answers

1
votes

Those javascript variables are now deprecated - users who want to register on Disqus must sign up for Disqus themselves. The good news is that they only need to do this once, and a lot of people might already have accounts.