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-1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa63ac4a4911cf39f830c539cad8525cd018e2274b37a5c4c91b0005f5a020b |
|
MD5 | 1f2e8637d972c75c646abfb375af9db3 |
|
BLAKE2b-256 | de6f20e1e557483d03f0bd570525e2bb303a3e7f944a1ee05642deacc5b73a14 |
Hashes for trackwell_notifications-1.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 509084cae447bca352b3cd6f253aed15c6e9154b1eef15a4c20638d84fcc784a |
|
MD5 | 56b7b11ccee74f67ea24f97421c5f6b4 |
|
BLAKE2b-256 | 9c86b180cdd3e0213ec076b44948cf81e844d441b09c562902b9d26068c5c1e8 |