Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

  1. pip install trackwell-notifications

  2. Add "notifications" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ... 'notifications', ]

Make sure it is after the auth etc.::

  1. 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> <link rel="stylesheet" href="{% static "css/notifications.css" %}" type="text/css" />
  2. Include the polls URLconf in your project like this::

    path('notifications/', include('notifications.urls')),

  3. 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')

  4. Run python migrate to create the notifications models.

  5. Start the development server and visit

Project details

Download files

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

Files for trackwell-notifications, version 2.1.1
Filename, size File type Python version Upload date Hashes
Filename, size trackwell_notifications-2.1.1-py2-none-any.whl (24.2 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size trackwell_notifications-2.1.1-py3-none-any.whl (24.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size trackwell-notifications-2.1.1.tar.gz (16.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page