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-4.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea4fb4aa0be396cccfbf5e9ff4b9e1a70148916fa25bc642786b84c4b94c27b3 |
|
MD5 | 044ccdeaccc69039a99d5d0ae2d21599 |
|
BLAKE2b-256 | 76d0ca032643687b397ea7246726182cc0eaa67c68e2f25f6272dbc35af12948 |
Hashes for trackwell_notifications-4.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21dda2a25ecdc9225024e3d61edbd466aaff8343fef7d1c8dcfe63d2c3d1aa8c |
|
MD5 | a05f7e839543ebf58212678ac8755a2c |
|
BLAKE2b-256 | 0ccea92d6c1358c38188d41148c4977e5b0c66fd2b079979f1362ffbbeb51f8b |