Only render comments in debug
This commit is contained in:
parent
7fff13f0ab
commit
8691d11a15
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
<div class="container">
|
||||
<section class="container">
|
||||
<div id="commento"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script async defer src="https://commento.theorangeone.net/js/commento.js"></script>
|
||||
{% if not DEBUG %}
|
||||
<script async defer src="https://commento.theorangeone.net/js/commento.js"></script>
|
||||
{% endif %}
|
||||
|
|
|
@ -3,4 +3,4 @@ from django.http.request import HttpRequest
|
|||
|
||||
|
||||
def global_vars(request: HttpRequest) -> dict:
|
||||
return {"SEO_INDEX": settings.SEO_INDEX}
|
||||
return {"SEO_INDEX": settings.SEO_INDEX, "DEBUG": settings.DEBUG}
|
||||
|
|
Loading…
Reference in a new issue