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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fb62b7eaa3e3ee104c24d33f77778581d9bcd4d8a6b205349a050644088dad1 |
|
MD5 | 2d1d858ca2477341d41fd2abbb2d9db3 |
|
BLAKE2b-256 | 13d2e4cbf6bb2e9b5d5b4d0e28069ff38611ed110e7d6844cfda51878e910688 |
Hashes for trackwell_notifications-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24efd0e8d18db1ecfb4af6714bde8de39ced820f331e5413707290508f9cce1f |
|
MD5 | e05b1c2b8d9631953d732760e5255b32 |
|
BLAKE2b-256 | 87d3cc7bea0c084be2d920d5fa1eb12c0a84ee51c80273b387f8dec2bdcc089d |
Hashes for trackwell_notifications-2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c44fec48e7e7ed3f7fb7e58cc3469f6481a4260099ec01ce566304aa2c63ec34 |
|
MD5 | 57869acbb2327e24c7ee9abe04d5ad8a |
|
BLAKE2b-256 | 1f719ca2e74234751061ed123b2dffde33d9019f2b8ff98399b7e3363a4f99a6 |