Skip to main content

A app package for simple notifications for django

Project description

https://travis-ci.org/leonardoo/django-simple-notifications.svg?branch=master https://codecov.io/gh/leonardoo/django-simple-notifications/branch/master/graph/badge.svg

A app package for simple notifications for django

Quickstart

Install django-notifications:

pip install django-simple-notifications

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'simple_notifications.apps.DjNotificationsConfig',
    ...
)

Add django-simple-notifications’s URL patterns:

from simple_notifications import urls as simple_notifications_urls


urlpatterns = [
    ...
    url(r'^', include(simple_notifications_urls)),
    ...
]

Add django-simple-notifications’s to the contexts processors:

TEMPLATES = [
    {
        ...
        'OPTIONS': {
            'context_processors': [
                ...
                "simple_notifications.context_processors.check_user_show_notification"
            ],
        },
    },
]

Add to the templates or base html:

{% include "simple_notifications/alert.html" %}

Features

  • TODO

Running Tests

  • TODO

Credits

Tools used in rendering this package:

History

0.1.1 (2018-06-19)

  • Bug fix

0.1.0 (2018-06-05)

  • First release on PyPI.

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-simple-notifications-0.1.1.tar.gz (7.5 kB view hashes)

Uploaded source

Built Distribution

Supported by

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