v1k45 / django-notify-x

Notification system for Django
MIT License
187 stars 40 forks source link

Notity improperly configured. #33

Closed ketangoyani closed 8 years ago

ketangoyani commented 8 years ago

This error in browser "console Notity improperly configured. No data-nf-id was found." Make sure you have a container element with 'undefined' as css class.

v1k45 commented 8 years ago

This project uses jQuery for client side works. For making it work with your project, you need to make sure you have certain attributes in your notification template. Please read about formatting notification templates.

The data-nf-id is the HTML attribute assigned to the parent element of notification. This will help our javascript to correctly select the parent notification element. Read about Things to take care when writing notification templates. Also make sure you've properly read the docs

v1k45 commented 8 years ago

Closing this issue assuming your question has been answered and you are satisfied with it. Please reply below for further help.

oguzhan-yilmaz commented 7 years ago

I had this problem, I was able to solve it by simply loading the writing them in this order: {% load notification_tags %}

{% static 'js/notifyX.js' %}