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-1.3.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ff519e811cee1903d64a8fff1cd0ac57be0cea369d1f27f52aa676471d109ab |
|
MD5 | 264f656ff3ac7d02674b7943810a88ce |
|
BLAKE2b-256 | 5db937658668723dc919f35dd165a6190f454cc5d8e3e1671f91e17647f8ceac |
Hashes for trackwell_notifications-1.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b9511020fd553cb49bc418a260f15fa3120625514f4c0782437dd53db9c74c5 |
|
MD5 | da15bd7dee14907d34d201c844fbed96 |
|
BLAKE2b-256 | 16b231d9c026faab84e0e83ada69d467c0978194b5c56c8c4df01781381d7d3a |
Hashes for trackwell_notifications-1.3.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce2126d832d62ebac29e1140f4fc50a3c1581d26ac64ec5190fb5848c443450f |
|
MD5 | 35aa944771e041556f1bd88c895ffc31 |
|
BLAKE2b-256 | 3687916de1d57b1c9c9fc94769829866eead8922e8910f183d6d65e0c354e598 |