Skip to main content

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

Project description

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 :)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-admin-notification-0.2.tar.gz (18.9 kB view details)

Uploaded Source

File details

Details for the file django-admin-notification-0.2.tar.gz.

File metadata

  • Download URL: django-admin-notification-0.2.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for django-admin-notification-0.2.tar.gz
Algorithm Hash digest
SHA256 9bb1775881a13073da7da4ffa85544da36974be87e3777de83e6551d1680f597
MD5 30e18d4f97c11269a129bdb22f183e08
BLAKE2b-256 023600aba9c2daa5bf2e05eeb71f7b12504c1671c902f3d7fa65ef44ee90cdc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page