Closed vivaelnino9 closed 7 years ago
Have you referred #37 ?
The submitter was also facing the same problem, turns out he needed to do the following things:
{% load notification_tags %}
in base template.{% include_notify_js_variables %}
was called before including notifyX.min.js
file.Ah it was {% include_notify_js_variables %}
that did it! Thanks!
Hey!
So as the title says, the marked read or delete feature for notifications is not working. Not sure if it is something I'm doing wrong or not. I tried to follow the documentation as tightly as I could.
#myapp/views.py
#myapp/test.html
However, when I run test.html that is supposed to just list all the notifications the current user(admin) has, it lists all of them perfectly however the buttons for mark as read or delete don't work. Along with that, I get the console message:
I've tried adding the
{% include_notify_js_variables %}
tag but a Django error is displayed saying that the tag has not been loaded, even with the{% load notification_tags %}
at the top.Looking at the
notifyX.js
file I can see where it goes wrong however I don't know how to avoid it. I've looked at the other issue involving the same subject buy it didn't seem to help.