A super simple library to allow admins to run Django management commands at panel. This saves admins from the hassle of ssh’ing into the servers, also gives more auditability since all the runtimes, commands, and outputs will be captured in the admin panel.
To understand the design decisions you can read the following blog posts where I justify the need for these cases.
https://eralpbayraktar.com/blog/django/2022/
Getting It
$ pip install django-admin-commands
Usage
Add admincommands to your INSTALLED_APPS in settings.py.
Run ./manage.py migrate to have the CommandRunInstance created in your database.
(Optional) Allow granular access who can run/delete/view command run instances using Django’s permissions system.
Release files for django-admin-commands 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-admin-commands-1.0.tar.gz | 3.1 kB | Details |
Release files / django-admin-commands-1.0.tar.gz
| Download URL | django-admin-commands-1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4513977375b15f6512d719dba7ba15b45c14fe807869cab46f85a659d7362a44
|
|
BLAKE2b-256 checksum How to use checksums |
e3f11515182ce116c933f573749037f535b9435c9a3c55671bcb4dc9f449f83c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|