Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_notifications_views-0.1.3.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file django_notifications_views-0.1.3.tar.gz.

File metadata

File hashes

Hashes for django_notifications_views-0.1.3.tar.gz
Algorithm Hash digest
SHA256 46c59f7d9990635e635d0644666334ec4445a13589fb26b8d988c58a67fb4119
MD5 5398bac35d049a87327a686c1a763e2e
BLAKE2b-256 7646e1335bdbf6914e3036c6e9d5988fe416cbb5adb6b2dea9c060210d14202d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page