mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-03-16 21:30:24 +00:00
Update README.md to reflect new import style for notification URLs
- Switched from `url` to `path` for including notification URLs in examples - Removed redundant import statement for `notifications.urls` - Corrected template tag name in the documentation
This commit is contained in:
parent
ddf6b59978
commit
c783a5938c
1 changed files with 2 additions and 8 deletions
10
README.md
10
README.md
|
|
@ -78,19 +78,13 @@ INSTALLED_APPS = (
|
|||
Add the notifications urls to your urlconf:
|
||||
|
||||
```python
|
||||
import notifications.urls
|
||||
|
||||
urlpatterns = [
|
||||
...
|
||||
url('^inbox/notifications/', include(notifications.urls, namespace='notifications')),
|
||||
path('inbox/notifications/', include("notifications.urls", namespace='notifications')),
|
||||
...
|
||||
]
|
||||
```
|
||||
|
||||
The method of installing these urls, importing rather than using
|
||||
`'notifications.urls'`, is required to ensure that the urls are
|
||||
installed in the `notifications` namespace.
|
||||
|
||||
To run schema migration, execute
|
||||
`python manage.py migrate notifications`.
|
||||
|
||||
|
|
@ -261,7 +255,7 @@ Mark the current object as read.
|
|||
|
||||
### Template tags
|
||||
|
||||
Put `{% load notifications\_tags %}` in the template before
|
||||
Put `{% load notifications_tags %}` in the template before
|
||||
you actually use notification tags.
|
||||
|
||||
### `notifications_unread`
|
||||
|
|
|
|||
Loading…
Reference in a new issue