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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54fed73b47db5586a3acb5795541ac634f6c79ed3186152ad9e70b20a0d49c0c |
|
MD5 | 88fae1489299a56112af51f8e006379e |
|
BLAKE2b-256 | 59770e56547e95602a3e41883880dee8fef6d7c8814db2e2624a1ec8a3d750e4 |
Hashes for trackwell_notifications-4.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | feae3eb0f5554a3e48ff52ae1c6c9f98ce8a6deb4e7b7ca59099268ca0c47743 |
|
MD5 | 28c51658bb440eb170f1b739eb174762 |
|
BLAKE2b-256 | 032e4179b9760469f618510569acaf86dabc2676636e37113d42009c1fc27373 |