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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d0145b77b87a3aa5f1aa5d6f5a2b8f52e329b7882bdcb00b4cdc279e4e7fd3 |
|
MD5 | 63ec32d33e8ffb5ac4090aafbaac8fde |
|
BLAKE2b-256 | 8de253fa1f193cbf22146401e851d119d353ac8efe7303c18bebc7ce1f9c0590 |
Hashes for trackwell_notifications-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f948c6a3856ced6a0aee8912c3a0b3bbbaa90958b8cd4562c5ef537151bb1a32 |
|
MD5 | 846408e2f4f53d751876dd62763e40bf |
|
BLAKE2b-256 | b0bbd91892c778ab8be8881fdf526d7e280ea05ab2d59975411e105eda27a053 |
Hashes for trackwell_notifications-2.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7321ed7b5dc5a7ea9968916d92825c91d772eca152f815822220878a82e30b29 |
|
MD5 | 9778c54b66f0333835581c1cb806dec0 |
|
BLAKE2b-256 | f883080b5f551d2c13dd061fcb3332a350ee911f079963282e05e453b6cc64b3 |