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-2.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6db8ef97a24f42bac785810c91a9af1fce733fbfa52f75a9979557509bc44513 |
|
MD5 | 02074e98c7a26cf1dfbc853d273dff65 |
|
BLAKE2b-256 | 25b8af0b86ad2e278646ff85f83e3f657b1f9309002c6b9248965a2fdf97ee98 |
Hashes for trackwell_notifications-2.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35ebf104bffa1b5ae72ebc316f38bed5a6251f79fa9b4af9013d3b7338dfc819 |
|
MD5 | 81a41a77fbba939608f1257fc4da9ddb |
|
BLAKE2b-256 | f38e70bfa33365eb19fcb56dadc5715b382b5d8de8ce5ccbef31dbed5008193f |
Hashes for trackwell_notifications-2.2.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 086d8152565e21c77c2b4e45cea327fe4ba96a09697e179dc477465299d11ca2 |
|
MD5 | 0d5cb6c9b20bdf66ff7c2126b09a2254 |
|
BLAKE2b-256 | 8d589a7af271dc9d9266d40f37f76a4f744b35ee2e44f7d77e7db57c95207cae |