Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
django-notifications-rest
Advanced tools
django-notifications-rest
Documentationdjango-notifications-rest provides rest endpoints for django-notifications-hq
.
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
.
There is also /add/
API endpoint to add new notifications. Such endpoint might be considered security risk, as any user can add any notifications. For that reason, it must be manually enabled by setting NOTIFICATIONS_API_ALLOW_ADD=True
FAQs
A django notifications package exposed through API Rest
We found that django-notifications-rest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.