djangoadminnotification 0.2
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 :)
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.