{ "info": { "author": "Ales Kocjancic", "author_email": "alesdotio@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 3" ], "description": "======================\nDjango Admin Shortcuts\n======================\n\n.. image:: https://raw.github.com/alesdotio/django-admin-shortcuts/gh-pages/images/django-admin-shortcuts.png\n\n\n\nWhat is this?\n=============\n\nIt's a simple dashboard app that adds shortcuts to your Django admin homepage. The keyword here is SIMPLE!\n\n\nWhy does it exist?\n==================\n\nBecause some people noted that it's sometimes hard to find the app you are looking for on the admin homepage.\n\n\"So why don't we customize the admin site a bit?\"\n\n\"Nah, I don't want to go through all the hassle of editing templates or setting up a complex dashboard app ...\"\n\nWell, good thing django-admin-shortcuts is here, because it only takes five minutes of your time to go from the old\ndreadfully boring admin to the marvelous engineering excellence that is this app.\n\n\nHow do I use it?\n================\n\n1) ``pip install django-admin-shortcuts``\n\n2) add ``'admin_shortcuts'`` to your ``INSTALLED_APPS``, just before ``'django.contrib.admin'`` **<-- IMPORTANT**\n\n3) add ``ADMIN_SHORTCUTS`` to your settings\n\n For example:\n::\n\n ADMIN_SHORTCUTS = [\n {\n 'title': 'Authentication',\n 'shortcuts': [\n {\n 'title': 'Groups',\n 'url_name': 'admin:auth_group_changelist',\n 'count': 'example.utils.count_groups',\n },\n {\n 'title': 'Add user',\n 'url_name': 'admin:auth_user_add',\n 'has_perms': 'example.utils.has_perms_to_users',\n },\n ]\n },\n ]\n\nWhere ...\n\n* required ``url_name`` is a name that will be resolved using Django's reverse url method (see Django docs https://docs.djangoproject.com/en/2.0/ref/contrib/admin/#admin-reverse-urls )\n* optional ``app_name`` is the name of the admin app that will be used for URL reversal. You can safely ignore this if you have only one admin site in your ``urls.py``\n* optional ``url`` is a direct link that will override ``url_name``\n* optional ``url_extra`` is extra stuff to be attached at the end of the url (like GET data for pre-filtering admin views)\n* optional ``title`` is the title of the shortcut\n* optional ``count`` and ``count_new`` are paths to a function inside your project that returns something interesting (like a count of all products or a count of all pending orders).\n The function can optionally take one argument, ``request``, which is the current Django ``HttpRequest`` object.\n* optional ``has_perms`` is a path to a function inside your project that returns information about shortcut visibility on the django admin homepage.\n Like above, this function can optionally take one argument ``request`` as well.\n* optional ``open_new_window`` sets whether the link should open in a new window (default is False)\n* optional ``icon`` is a Font Awesome Solid https://fontawesome.com/icons?d=gallery&s=solid icon class (if you don't specify one, magical ponies will do it for you)\n\n4) profit!!\n\n5) optionally, also add ``ADMIN_SHORTCUTS_SETTINGS`` to your settings\n\n::\n\n ADMIN_SHORTCUTS_SETTINGS = {\n 'hide_app_list': False,\n 'open_new_window': False,\n }\n\n\nWhere ...\n\n* optional ``show_on_all_pages`` shows the shortcuts on all admin pages\n* optional ``hide_app_list`` collapses the app list\n* optional ``open_new_window`` makes all shortcuts open in a new window\n\n\nWhat are the settings used in the pretty image above?\n=====================================================\n\n::\n\n ADMIN_SHORTCUTS = [\n {\n 'shortcuts': [\n {\n 'url': '/',\n 'open_new_window': True,\n },\n {\n 'url_name': 'admin:logout',\n },\n {\n 'title': 'Users',\n 'url_name': 'admin:auth_user_changelist',\n 'count': 'example.utils.count_users',\n },\n {\n 'title': 'Groups',\n 'url_name': 'admin:auth_group_changelist',\n 'count': 'example.utils.count_groups',\n },\n {\n 'title': 'Add user',\n 'url_name': 'admin:auth_user_add',\n 'has_perms': 'example.utils.has_perms_to_users',\n },\n ]\n },\n {\n 'title': 'CMS',\n 'shortcuts': [\n {\n 'title': 'Pages',\n 'url_name': 'admin:index',\n },\n {\n 'title': 'Files',\n 'url_name': 'admin:index',\n },\n {\n 'title': 'Contact forms',\n 'icon': 'columns',\n 'url_name': 'admin:index',\n 'count_new': '3',\n },\n {\n 'title': 'Products',\n 'url_name': 'admin:index',\n },\n {\n 'title': 'Orders',\n 'url_name': 'admin:index',\n 'count_new': '12',\n },\n ]\n },\n ]\n ADMIN_SHORTCUTS_SETTINGS = {\n 'show_on_all_pages': True,\n 'hide_app_list': True,\n 'open_new_window': False,\n }\n\n\n\nI want to change how stuff looks\n================================\n\n* to change the CSS overwrite the ``templates/admin_shortcuts/base.css`` template\n* to change the which icons are magically selected specify the mappings in ``ADMIN_SHORTCUTS_CLASS_MAPPINGS``", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/alesdotio/django-admin-shortcuts/tarball/2.0.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alesdotio/django-admin-shortcuts", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-admin-shortcuts", "package_url": "https://pypi.org/project/django-admin-shortcuts/", "platform": "", "project_url": "https://pypi.org/project/django-admin-shortcuts/", "project_urls": { "Download": "https://github.com/alesdotio/django-admin-shortcuts/tarball/2.0.0", "Homepage": "https://github.com/alesdotio/django-admin-shortcuts" }, "release_url": "https://pypi.org/project/django-admin-shortcuts/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "Add simple and pretty shortcuts to the django admin homepage.", "version": "2.0.0" }, "last_serial": 3834067, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1c3c1d439375a8c71a659fad724064d9", "sha256": "1fc5ac30ceff0c6994b1e8e701e232cf962ddb80c1b2a223b77079913a005bc5" }, "downloads": -1, "filename": "django-admin-shortcuts-1.0.tar.gz", "has_sig": false, "md5_digest": "1c3c1d439375a8c71a659fad724064d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27864, "upload_time": "2012-09-10T08:15:55", "url": "https://files.pythonhosted.org/packages/4e/7d/0aa2a7e594e7dfae79e494329fd1424309eb5303bcb54e013620fc420406/django-admin-shortcuts-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "ac9344165f1d521244bf5068e7318793", "sha256": "44b98ecc32c6cacde5b127be0d6b6dd628e246995a44cf98ab3162ed9497bf5a" }, "downloads": -1, "filename": "django-admin-shortcuts-1.1.tar.gz", "has_sig": false, "md5_digest": "ac9344165f1d521244bf5068e7318793", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28152, "upload_time": "2012-09-10T12:37:15", "url": "https://files.pythonhosted.org/packages/3c/7b/55b4b537e0c1b6628f4991d98ecc2dbcac6cf5c0ac2cd78cd7dc6b27aa73/django-admin-shortcuts-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "ea0b4754d003d2ed01f2a531c034c3b3", "sha256": "72b2ae02fc8e8ed463df37b99661984fb93c640761246d2b1ebfbf5764e568c7" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.tar.gz", "has_sig": false, "md5_digest": "ea0b4754d003d2ed01f2a531c034c3b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28254, "upload_time": "2012-09-10T13:06:08", "url": "https://files.pythonhosted.org/packages/79/e7/7917be22a3e52b95c9481db39feb2c2da398ed20f0e061684938d2f48b20/django-admin-shortcuts-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "e732374c2696f998f4d2908ce2801fe5", "sha256": "2b63fd8e16b0a6d072862e494dc527f71130ca0778b7b4ad6a9664e1d670ae59" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.1.tar.gz", "has_sig": false, "md5_digest": "e732374c2696f998f4d2908ce2801fe5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 28263, "upload_time": "2012-09-10T13:22:51", "url": "https://files.pythonhosted.org/packages/38/f1/90500c9c797f43e6de3e5e9617e46f605eb6d84dfb6c72fc4cc8f9f81768/django-admin-shortcuts-1.2.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "baddeb9c5987a9cf315f108e2e26d0fe", "sha256": "fa665b7aede86ec6b3e299d26af1a5a74068ea613298e8b028afefc250298725" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.2.tar.gz", "has_sig": false, "md5_digest": "baddeb9c5987a9cf315f108e2e26d0fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79098, "upload_time": "2012-09-14T07:36:23", "url": "https://files.pythonhosted.org/packages/35/a6/a6529f8ec93351124e1baa6a98cc428e7e54bb4000976c0d0b2cfb812955/django-admin-shortcuts-1.2.2.tar.gz" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "7ce07d690e79bce2aa150c842e772e51", "sha256": "84dea04ac7dc2cc58fda7aabdd5b09028c26e1c8a7038993ea579c5e896ac5b8" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.3.tar.gz", "has_sig": false, "md5_digest": "7ce07d690e79bce2aa150c842e772e51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 78273, "upload_time": "2012-10-31T14:17:52", "url": "https://files.pythonhosted.org/packages/21/56/3214196a9e94fae2b02b4c5d2bde15a618a71379baf7e09724bbabcb9a39/django-admin-shortcuts-1.2.3.tar.gz" } ], "1.2.4": [ { "comment_text": "", "digests": { "md5": "8d7a4168c694e27ad4db0f62372ac917", "sha256": "daf418e9988f0b71b6e580713bcc4f21430edb9cdfc3bd5fa0b85627cc62c3b9" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.4.tar.gz", "has_sig": false, "md5_digest": "8d7a4168c694e27ad4db0f62372ac917", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 78301, "upload_time": "2012-10-31T14:40:31", "url": "https://files.pythonhosted.org/packages/97/2f/d395c299aed9a50041c5d67937510f81f9604e52b6d43725bf3195692901/django-admin-shortcuts-1.2.4.tar.gz" } ], "1.2.5": [ { "comment_text": "", "digests": { "md5": "163cd76e017527941cd857832a74980b", "sha256": "a573a5f80cca9f13d637234fc8ab15b91200e8d130e79b1b9e57f5a6182b1918" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.5.tar.gz", "has_sig": false, "md5_digest": "163cd76e017527941cd857832a74980b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 78308, "upload_time": "2013-01-07T08:43:07", "url": "https://files.pythonhosted.org/packages/78/8d/bfae5e97516d9a325debed11b1dc6463aee60db88f780347650fe557c63a/django-admin-shortcuts-1.2.5.tar.gz" } ], "1.2.6": [ { "comment_text": "", "digests": { "md5": "f211f335b4ab700847fcef55f2896618", "sha256": "db13cfdff7191e2e57168f6301a005f4bb4e43e9605c480c50af8b4fc7860465" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.6.tar.gz", "has_sig": false, "md5_digest": "f211f335b4ab700847fcef55f2896618", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79088, "upload_time": "2015-04-06T19:40:00", "url": "https://files.pythonhosted.org/packages/6c/34/5842149e03448e0e35147da2758b28744d2e18e5baaaa7e6a369d37f77ea/django-admin-shortcuts-1.2.6.tar.gz" } ], "1.2.7": [ { "comment_text": "", "digests": { "md5": "d5512948000b46b8e1236f263ca74406", "sha256": "14b8a14e5a071f8da725b8a5c83fa78e91dd02c70b42327045c137350dc2a249" }, "downloads": -1, "filename": "django-admin-shortcuts-1.2.7.tar.gz", "has_sig": false, "md5_digest": "d5512948000b46b8e1236f263ca74406", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 79038, "upload_time": "2016-03-01T13:02:23", "url": "https://files.pythonhosted.org/packages/97/56/0bf5a98ca7e6c757e39d8ff7f60967cbd9c4d6c84b788e56a63ac37020d9/django-admin-shortcuts-1.2.7.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "620d12dfae217aaaa2e5fe7ba5538c90", "sha256": "31fcdedee3f45038e57f5ca71dee8853a313ac057c93f898f766d6a90355e0ea" }, "downloads": -1, "filename": "django-admin-shortcuts-2.0.0.tar.gz", "has_sig": false, "md5_digest": "620d12dfae217aaaa2e5fe7ba5538c90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9265, "upload_time": "2018-05-04T11:23:02", "url": "https://files.pythonhosted.org/packages/75/8b/9496dae0c9e08272c4ae73671ffeda14d29caf219bd6045d92a7dc265963/django-admin-shortcuts-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "620d12dfae217aaaa2e5fe7ba5538c90", "sha256": "31fcdedee3f45038e57f5ca71dee8853a313ac057c93f898f766d6a90355e0ea" }, "downloads": -1, "filename": "django-admin-shortcuts-2.0.0.tar.gz", "has_sig": false, "md5_digest": "620d12dfae217aaaa2e5fe7ba5538c90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9265, "upload_time": "2018-05-04T11:23:02", "url": "https://files.pythonhosted.org/packages/75/8b/9496dae0c9e08272c4ae73671ffeda14d29caf219bd6045d92a7dc265963/django-admin-shortcuts-2.0.0.tar.gz" } ] }