I would like disqus comments disabled when my django app runs locally or on the test server.
So in my Django settings.py
I am using:
DEBUG = True
DISQUS = False
Now in my django blog_post.html
template I have an IF statement:
{% if DISQUS %}
<div id="disqus_thread"></div>
<script>
etc.
etc.
</script>
{% else %}
<p>Disqus disabled...</p>
{% endif %}
When I push the code to the live server (DISQUS = True
) the comment section will be there in my html page.
While I was using Apache mod_wsgi I had no trouble with this setup!
However after switching to Passenger this stopped working. I have tried almost every known combination with no hope. The DISQUS
custom variable will not get passed to the template.
Why is it working with mod_wsgi and not with mod_passenger?
Apache/2.4.6 (CentOS) Phusion_Passenger/5.0.28
Thanks