Django-notifications-views is an extension for Django-notifications-hq that provides a viewset for the notifications.
Project description
Django-notifications-views
Django-notifications-views is an extension for Django-notifications-hq that provides a viewset for the notifications and expo notifications.
Requirements
- Django >= 3.8 *
- Python >= 3.8 *
- django-notifications-hq >= 1.8 *
(*) Not tested with earlier versions.
Quick Setup
Install package
pip install django-notifications-views
Add django_notifications_views
app to INSTALLED_APPS in your django settings.py:
INSTALLED_APPS = (
...,
"django.contrib.staticfiles",
"rest_framework", # required only if using the provided REST endpoints
'notifications',
'django_notifications_views',
...,
)
Include viewset routes
from django_notifications_views.urls import router as django_notifications_views_router
your_router.registry.extend(django_notifications_views_router.registry)
Add the following to your settings.py if you want to enable Expo Go notifications:
DJANGO_NOTIFICATIONS_VIEWS = {
'USE_EXPO_NOTIFICATIONS': True, # Set to True to enable expo notifications
'EXPO_APP_ID': '<your-expo-app-id>',
}
Contributing
Maintained and developed by Linkchar Software Development.
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
File details
Details for the file django_notifications_views-0.1.4.tar.gz
.
File metadata
- Download URL: django_notifications_views-0.1.4.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc8ae64e0341f0aa12d8f88f0d40e130ba0947886f805088e26addc774118545 |
|
MD5 | 3035734eef7ae32cb27ec21fb38383f4 |
|
BLAKE2b-256 | 4065e222f7e3565ff0f45114809e1c027816d72eb59daf0d6f924caa97611828 |