Skip to main content

Django Notifications

Описание

Django Notifications — это приложение для управления уведомлениями в Django. Оно позволяет отслеживать изменения в моделях и отображать уведомления в админ-панели.

Установка

  1. Установите пакет через poetry или pip:

    poetry add azzlem-django-notifications
    

    или

    pip install azzlem-django-notifications
    
  2. Добавьте django_notifications в INSTALLED_APPS в settings.py (в начало списка):

    INSTALLED_APPS = [
        "django_notifications",
        # другие приложения...
    ]
    

Настройка

1. Добавление URL-маршрутов

В файле urls.py основного проекта добавьте маршрут для уведомлений:

from django.urls import path
from django_notifications.views import get_notifications

urlpatterns = [
    path("django_notifications/admin/notifications/", get_notifications, name="notifications"),
]

2. Настройка отслеживаемых моделей

В settings.py укажите модели, за которыми нужно следить:

TRACKED_MODELS = [
    "appname.ModelName",  # Замените на ваши модели
]

3. Подключение кастомной админки (если используется)

Если у вас кастомная админка, добавьте CustomAdminSite:

from django_notifications.admin import CustomAdminSite
from django.contrib import admin

class MyAdminSite(CustomAdminSite, admin.AdminSite):
    pass

Использование

После настройки уведомления будут автоматически создаваться при изменении отслеживаемых моделей. Вы сможете просматривать их в админке по пути:

/admin/notifications/

Лицензия

Проект распространяется под лицензией MIT.


📧 Контакты: Если у вас есть вопросы или предложения, пишите на azzlem.sid@gmail.com.

Metadata

Release files for azzlem-django-notifications 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for azzlem-django-notifications 0.1.9
File Size Uploaded Provenance
azzlem_django_notifications-0.1.9.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for azzlem-django-notifications 0.1.9
File Interpreter ABI Platform
azzlem_django_notifications-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / azzlem_django_notifications-0.1.9.tar.gz

Download URL azzlem_django_notifications-0.1.9.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ea2fa84e60a25936b26d1299f069fea2d098bbd0cf9d4a0b43dfcb60324e5ddc
BLAKE2b-256 checksum
How to use checksums
862f563f0eb096c444db35a84bd24ad378f924e84828cdb16c1f3f4031b99c21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Windows/10

Release files / azzlem_django_notifications-0.1.9-py3-none-any.whl

Download URL azzlem_django_notifications-0.1.9-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40442916e088ee77585dc879ca6e0c358500e06e4eb82d4022089ef4f2ccc925
BLAKE2b-256 checksum
How to use checksums
086d36b7f136c6c86aa9aab26c27a5b4faf9b200b25f202dd05632320c247dc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.12.7 Windows/10

Security for azzlem-django-notifications 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page