A simple Django app to support Notifications.
Project description
===== Notifications
Notifications is a simple Django app to serve notifications to your users.
To start:
pip install trackwell-notifications
Quick start
-
pip install trackwell-notifications
-
Add "notifications" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'notifications', ]
Make sure it is after the auth etc.
MIDDLEWARE_CLASSES = (
...
'notifications.middleware.NotificationMiddleware',
)
-
Put the js and css imports in your base template where you want things to pop up
<script type="text/javascript" src="{% static "notifications/Notifications.js" %}"></script> -
Include the polls URLconf in your project urls.py like this::
path('notifications/', include('notifications.urls')),
-
Register the api
from notifications.api.views import NotificationViewSet from notifications.api.views import UserNotificationViewSet
router.register(r'users', UserViewSet) router.register(r'^users_in_groups', UsersInGroupsViewSet, 'Users in groups')
-
Run
python manage.py migrate
to create the notifications models. -
Start the development server and visit http://127.0.0.1:8000/admin/notifications
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for trackwell-notifications-1.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba199df878b9689ee26ecadd8d551fef43cfe4dce2428d01ccc09b077d62c7f2 |
|
MD5 | ca7120d5a26e1f4b3f20b6e61ff4a22f |
|
BLAKE2b-256 | f05922ee0145819ed56e4789472c186c784ceef14913ff328f0995bb0ab439ad |
Hashes for trackwell_notifications-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb285c0d97f0aa36f4af06fe6af8ad4dbecd5a75f8500726ac435183ec726981 |
|
MD5 | c87d8fc2f450d831a330b2b4f551b2e4 |
|
BLAKE2b-256 | 1b3ae7c1b66a44874848e10591edf007e385cbbc8d92069c41cb2eff09386a95 |
Hashes for trackwell_notifications-1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d68470be1d74bea904e93b8a64a87c9a3cdcf2bbc1d6f94b7ddaaa616f9f0e2 |
|
MD5 | d4765172f8e46d28e970a0be885dbf73 |
|
BLAKE2b-256 | 258582e8a47268660a0548d466f58f7b875886742a4874c89b23b2cc6326dd67 |