You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

django-admin-notification

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-admin-notification

django-admin-notification is a Django app to display notification in Django admin panel

0.2
pipPyPI
Maintainers
1

django-admin-notification

django-admin-notification is a Django app to display notification in Django admin panel.

Installation

  • Run pip install django-admin-notification
  • Add admin_notification to settings.INSTALLED_APPS before django.contrib.admin
INSTALLED_APPS = (
    #...
    "admin_notification",
    #...
    "django.contrib.admin",
    #...
)

  • In settings.py:
NOTIFICATION_MODEL = 'myapp.MyModel' # Select the model you want to control, for example: "accounts.Message"
  • If you have changed the base url of the admin site. in settings.py:
ADMIN_SITE_BASE_URL = 'admin_site_base_url/' # default is "admin/
  • In urls.py:
...
from admin_notification.views import check_notification_view
urlpatterns = [
    path('check/notification', check_notification_view, name="check_notifications"),
    ...
]

  • Run python manage.py migrate
  • Restart your application server
  • Visit http://127.0.0.1:8000/admin/
  • Create an instance of the model(NOTIFICATION_MODEL) and enjoy :)

Keywords

django

FAQs

Did you know?

Socket

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.

Install

Related posts