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.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d425bb992e39e675ca959981f058ddaa4b83ae6cf7f4b69c72b7bb8adcde5190 |
|
MD5 | 5bde15541a2cd5028d70072fa23f099a |
|
BLAKE2b-256 | a991dc07b1a46f4ff38b37126972a13174475194766e0a52d2e6f346d28cda47 |
Hashes for trackwell_notifications-1.3.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eb0ed9911e493f4e01869f57502c1d119efd747783d37f427169f6863d32daf |
|
MD5 | 38818e9982ff45fae0a2e7799636e5f4 |
|
BLAKE2b-256 | 1f9b0ecb779452c52c6e3c559d17b99b5dce99ac3d9ad51cea37919ac6022db7 |