{"id":20037684,"url":"https://github.com/amirhamiri/django-admin-notification","last_synced_at":"2025-06-19T01:41:28.432Z","repository":{"id":51970765,"uuid":"520701325","full_name":"amirhamiri/django-admin-notification","owner":"amirhamiri","description":"django-admin-notification is a Django app to display notification in Django admin panel.","archived":false,"fork":false,"pushed_at":"2023-12-14T09:02:50.000Z","size":31,"stargazers_count":80,"open_issues_count":1,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-14T14:02:59.220Z","etag":null,"topics":["admin","django","notifications","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amirhamiri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-03T01:37:06.000Z","updated_at":"2024-03-04T10:53:05.000Z","dependencies_parsed_at":"2024-11-13T10:22:49.367Z","dependency_job_id":"b898cc17-02c3-4d42-9e2b-027d941b3f16","html_url":"https://github.com/amirhamiri/django-admin-notification","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"d92d8d54145338b2d77ccfd064ab98e10598447c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirhamiri%2Fdjango-admin-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirhamiri%2Fdjango-admin-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirhamiri%2Fdjango-admin-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirhamiri%2Fdjango-admin-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirhamiri","download_url":"https://codeload.github.com/amirhamiri/django-admin-notification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230494917,"owners_count":18235046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","django","notifications","python"],"created_at":"2024-11-13T10:21:03.542Z","updated_at":"2024-12-19T20:06:58.553Z","avatar_url":"https://github.com/amirhamiri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-admin-notification\ndjango-admin-notification is a Django app to display notification in Django admin panel.\n## Installation\n- Run `pip install django-admin-notification`\n- Add `admin_notification` to `settings.INSTALLED_APPS` **before** `django.contrib.admin`\n```python\nINSTALLED_APPS = (\n    #...\n    \"admin_notification\",\n    #...\n    \"django.contrib.admin\",\n    #...\n)\n```\n## Settings\n\n\n`NOTIFICATION_MODELS`: A list of models which you want to get notified about them in the django admin panel. the correct format for each element of the list is `app.model`\n```python\nNOTIFICATION_MODELS = ['myapp.MyModel']\n```\n\n`ADMIN_SITE_BASE_URL`: An string representing the url to django admin page, if you have changed the base url of the admin site in settings.py, the default is `\"admin/\"`:\n```python\nADMIN_SITE_BASE_URL = 'admin_site_base_url/'\n```\n## Urls\n`check_notifications`: This view is needed to keep track of notifications and redirecting to the corresponding models admin page. you must add this view into your urls list.\n```python\n...\nfrom admin_notification.views import check_notification_view\nurlpatterns = [\n    path('check/notification', check_notification_view, name=\"check_notifications\"),\n    ...\n]\n```\n\u003e Note: You are free to change the url but keep the name the same as it is in the example.\n\n## Run\n- Run `python manage.py migrate`\n- Restart your application server\n- Visit http://127.0.0.1:8000/admin/\n- Create an instance of any of the NOTIFICATION_MODELS and enjoy :)\n![notif](https://user-images.githubusercontent.com/78421033/182895917-8c9cbc58-03df-48f8-b231-8f8a50c8162f.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirhamiri%2Fdjango-admin-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirhamiri%2Fdjango-admin-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirhamiri%2Fdjango-admin-notification/lists"}