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.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae136f012238def330e66200e37f23b7a58c22b70c345bd7f8ca935d9429db48 |
|
MD5 | 97410acf954a7616661a69f8dfaa2818 |
|
BLAKE2b-256 | 2d7076056a7778593102a57a691531a9068e3b2d163b893c01570ff40909fac8 |
Hashes for trackwell_notifications-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a00b15ad0ea1f690445c3730521f314e257aa3b83175a197237ab672456b8de |
|
MD5 | 296d9d31dde01195cbd27de0c716e383 |
|
BLAKE2b-256 | b93090901e93f3e9c751afb9600f57bf000584ad1111e198367e7fa857b4c3c1 |
Hashes for trackwell_notifications-2.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b9e9843ecefa508edd93991beef34cd4fb0c329811cbca1c1db7d3fd809c3d |
|
MD5 | 148e55b2cdf3a2d9d6cdd0686411e6f0 |
|
BLAKE2b-256 | 17f5ac99debae9f1e0d0fa8e04a5c3941b9230294bb04eb7ba66ec831f04d10d |