{"repo":"akx/django-managerie","free":true,"listed":false,"github":"https://github.com/akx/django-managerie","clone":"git clone https://github.com/akx/django-managerie.git","description":"Expose Django management commands in the admin","language":"Python","stars":89,"topics":["django","admin","management"],"license":"MIT","category":"dashboards-admin","readme_excerpt":"django-managerie :lightbulb: Expose Django management commands as forms in the admin, like so: Requirements - Django 4.2+ (this project tracks Django's end-of-life policy) - Python 3.10+ Installation Install the package as you would any Python package, then add django managerie to your INSTALLED APPS . Automatic patching This is the easiest way to get up and running. You can have Managerie patch the admin site's dashboard view to include pseudo-models with the name \"Commands\" for all apps where management commands are available, and while it's at it, it'll also include URLs of its own. Hook up Managerie to your admin site (e.g. in urls.py , where you have admin.autodiscover() ), like so: No patching This is likely safer (in the presence of slightly less tolerant 3rd party apps that mangle the admin, for instance), but you can't enjoy the luxury of the Commands buttons in the admin dashboard. Usage If you allowed Managerie to patch your admin, superusers can now see Commands \"objects\" in the admin dashboard. If you didn't patch the admin, you can access a list of all commands through /admin/managerie/ (or wherever your admin is mounted). If you click through to a command, you'll see the arguments of the command laid out as a form. Fill the form, then hit \"Execute Command\", and you're done! :sparkles: Accessing the Django request from a managerie'd command Managerie sets managerie request on the command instance to the current Django request. You can use it to access the reques","default_branch":null,"files":null,"tree":[],"storefront":"/r/akx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akx/django-managerie/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}