I have been intending to use django-notification in my django app.
The docs are a little sparse for someone with my limited level of experience. I need a couple of clarifications about its usage.
- In the project's usage.txt, under the section "Creating Notice Types" it says:
You need to call
create_notice_type(label, display, description)
once to create the notice types for your application in the database.
After debating this with myself quite a lot, I feel like I don't really "need" to do that. The objective is to create records for notice types in the database, so I can very well do that using django-notification's options in the admin section. Am I right?
I think create_notice_type is useful when one is distributing apps so that they are pluggable.
- In the project's usage.txt, under the section "Notification templates" it says:
There are four different templates that can to be written for the actual content of the notices: .......... Each of these should be put in a directory on the template path called
notification/<notice_type_label>/<template_name>
. If any of these are missing, a default would be used.
What are these default templates? Where do they need to reside? Is putting the four templates mentioned in the docs in a "notification" directory in the template loader path sufficient?
- As can be seen in the project's views.py line 43, the template "notices.html" is used. Line 53 uses "single.html" . But the project does not provide these template anywhere in its directory structure. What is going on there?