A django notifications package exposed through API Rest
Project description
django-notifications-rest
Documentation
django-notifications-rest provides rest endpoints for django-notifications-hq
.
Requirements
- Python 3.5, 3.6, 3.7, 3.8
- Django 2.2, 3.0, 3.1
- django-notifications-hq latest version
- djangorestframework latest version
Installation
Installation using pip
. You need to manually install the required django-notifications-hq
and djangorestframework
packages.
$ pip install django-notifications-rest
or get it from source
$ git clone https://github.com/yhdelgado/django-notifications-rest.git
$ cd django-notifications-rest
$ python setup.py sdist
$ pip install dist/django-notifications-rest*
Then to add the Django Notifications Rest to your project add the app notifications_rest
to your INSTALLED_APPS
and urlconf.
The app should go somewhere after all the apps that are going to be generating notifications like django.contrib.auth
INSTALLED_APPS = (
'django.contrib.auth',
'rest_framework',
'notifications'.
...
'notifications_rest',
...
)
Add the notifications urls to your urlconf::
urlpatterns = [
...
url('^notifications/', include('notifications_rest.urls')),
...
]
If the installed version of django>=3.1, then::
from django.urls import path, include
urlpatterns = [
...
path('^notifications/', include('notifications_rest.urls')),
...
]
To run schema migration, execute python manage.py migrate
.
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 django-notifications-rest-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37ed96404a2b77236046ca2695fabdea8bd82abbab02c860f85c77313718b806 |
|
MD5 | 0498c3ea65fc130a78bfebde3f1ebea5 |
|
BLAKE2b-256 | 95f24c2cd49566c9741964df350edac48f0b567f7f6ede5bf7ec56495652339d |
Hashes for django_notifications_rest-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc9bfd7c33a15f109871974694bd25a014324d1503dd54bdacd4b7fadcb2406a |
|
MD5 | 609ad120b0a8495ea441bf72e61083ba |
|
BLAKE2b-256 | a27cf99bd53963cabf4319fec84ba70298b7a01ab32896e2cb62b65346008b39 |