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-3.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a240113209081e4284a29b123d02c1bff8df26f81a3508d273fb837404144afa |
|
MD5 | 996f18cf9c6377161564bfbdcb219573 |
|
BLAKE2b-256 | 9ad2371cd12276eec3d5d78e40da494c94d228419cbabbdbfde4a9e01343077b |
Hashes for trackwell_notifications-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 463fa683deec5ceeb5f67a95d926e365487057fd5485ee79d11f553378f53ced |
|
MD5 | 0fe9f4e0b2dd7d102048d81e8451caec |
|
BLAKE2b-256 | 0f18ff60496c16d8a72b08a19b29bd1f4f44d72702ae2346528921359a232099 |
Hashes for trackwell_notifications-3.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ddacbbe38ede9ac33478bba4ef25187d766b74560c19d1692225f48ff0e029e |
|
MD5 | 5ede4570bb794a0a8eb75c26432a4a02 |
|
BLAKE2b-256 | 8cbe7f1d9ec011a3aa68a508326eaeeeec941afb123fd496231e0337a70b3f51 |