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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db84bec40c9c6a671c2043c6ef297117049a3f33f6d1aad8b4016a7a1f23564f |
|
MD5 | 814eda5c93d9f1c7ed24b956cb36ecab |
|
BLAKE2b-256 | a11b1a11c1c3bb4c66a9d79802175a1f26d161288c2880ce12ec49abfbf3f4bc |
Hashes for trackwell_notifications-1.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7f1cc97e5087d932349e6f02791bb2f48a8d16974894a5d5d786e16fa266c9 |
|
MD5 | aba6956e8c74e17a8023179495e587d6 |
|
BLAKE2b-256 | 4ef61d8127a08fb267fda2d5007f2cbe2dd6e993a5b30fdad9a41ac48b462cf3 |