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 Distribution
Hashes for trackwell-notifications-0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d494fa6b362b579fa6d6bd509f1d3a2c19178154a88cbb126ff102fa1064b432 |
|
MD5 | aa1734e3a9c2fd169cae1652ca4463da |
|
BLAKE2b-256 | 30fcbab1982c1aa1a1b919c305f65fe7bf7e04544a3c8eeee9cdde616aa02ec2 |
Hashes for trackwell_notifications-0.11-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edfeecb610be194b68754fb7f2f3580a715098eb7ff97cf4da90479c38c34fa4 |
|
MD5 | 31acbd64fb391efe1684a0ff48e44f0a |
|
BLAKE2b-256 | 6a036e3c6dd6f09c3af9e0153e89ef5005edbefc79aefa1d6965f89ecec37667 |