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-3.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984c9cafe382ea591258f3ff2245f5c9a75fc5876429e316e6b72d5c48c7dae3 |
|
MD5 | cabb19513e06e3ecb957882eaf1abfdf |
|
BLAKE2b-256 | 6f1abccdf45333e868c10a7b06a644271d883101604b666886cab73718a6daef |
Hashes for trackwell_notifications-3.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82bd0bfd150ed79b08955748b7dde5e57cc66bb134be3b80cc182758b7061d3e |
|
MD5 | b3711895cd0dba70faeb2fe9cec28182 |
|
BLAKE2b-256 | 2cd981506befffd98240d9425ca864193813d9add2a17b12f3eeb5a516310fed |
Hashes for trackwell_notifications-3.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e61df7fa9b614cad89a6f3022359f1d6a7c00ed6aa3b5b99c3179b08d43fbb73 |
|
MD5 | c1849a748844d353e88724c2bf04790c |
|
BLAKE2b-256 | 4d09c79cb2d348dfb682d7a997337b4591d35fe2357b2cf521f01201f475b333 |