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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ddd52f84db55ca33537664f1803c5e3c13adf47c1579eeac8a79aff49bff983 |
|
MD5 | ef5b38d59412ff4450e502d2f1ea340e |
|
BLAKE2b-256 | 79d05abe5da0d96e322773b3fc62d1933951726dd816ae95a147d20c394424ef |
Hashes for trackwell_notifications-1.3.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eba882a6d4fb3833ed25c445e8c5c6911f62d0c89d282a6942e528579b0db684 |
|
MD5 | 9c16a2eae9e8a6fcf06a9d8e24556a30 |
|
BLAKE2b-256 | 4cba8ad4785c00180ab398d9f80344a12167d349e1321a9a0ebcdab1524f29ea |