Skip to content

Latest commit

 

History

History
54 lines (33 loc) · 1.54 KB

README.rst

File metadata and controls

54 lines (33 loc) · 1.54 KB

Django Admin Keyboard Shortcuts

This is a proof of concept for adding keyboard shortcuts to the Django Admin.

There is no PyPI package and I strongly recommend against using this package as it's very hacky and really just a proof of concept of the types of shortcuts we could have in the core admin. Most of the work needs to happen in core because we'd likely need to add new blocks to the admin template, and would ideally need changes to the templates.

Setup

You will need a Django project with the admin enabled. The easiest way is to use https://github.com/knyghty/django-admin-demo

Then clone this repo somewhere and install it in editable mode with pip, e.g.

pip install -e ../django-admin-keyboard-shortcuts

Then add django_admin_keyboard_shortcuts to your INSTALLED_APPS. It must go above the django.contrib.admin app so that the template overrides work.

Now you can hack away.

Linting

This project uses ESLint as its JS linter and uses the same configuration as the Django repository. To run it, you'll first need to install dependencies

npm install

and then run

npm run lint

Credits

This package was created with Cookiecutter and the knyghty/cookiecutter-django-package project template.