Django Admin Tool Command
A reusable Django app that allows to run mangement commands from admin site
Installation
To get the latest stable release from PyPi
pip install django-admintool-command
To get the latest commit from GitHub
pip install -e git+git://github.com/daadu/django-admintool-command.git#egg=admintool_command
TODO: Describe further installation steps (edit / remove the examples below):
Follow installation instructions for https://github.com/django-admin-tools/django-admin-tools
Add admintool_command to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'admin_tools',
'admin_tools.menu',
'admin_tools.dashboard',
'admintool_command',
)
Add the admintool_command URLs to your urls.py
urlpatterns = [
url(r'^admin/commands/', include('admintool_command.urls')),
]
Usage
Commands need to inherit from admintool_command.AdminCommand and implement at least a Form which is used to present the command arguments.
Then these are added to settings like:
ADMIN_TOOLS_COMMANDS = {
'app_name': ['command_name'],
}
Optionally, add admintool_command.dashboards.AdminCommandMenu to your django-admin-tools menu.
TODO: Describe about django-admin-tools
TODO: Describe usage or point to docs. Also describe available settings and templatetags.
Contribute
If you want to contribute to this project, please perform the following steps
# Fork this repository
# Clone your fork
virtualenv -p python3.6 venv
source venv/bin/activate
make develop
git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch
In order to run the tests, simply execute tox. This will install four
new environments (for Django 1.11, 2.0, 2.1 and 2.2) and run the tests
against all environments.
Metadata
Release files for django-admintool-command 0.1.1
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-admintool-command-0.1.1.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_admintool_command-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / django-admintool-command-0.1.1.tar.gz
| Download URL | django-admintool-command-0.1.1.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a5995d4be260996626282b1c0fdafc8cf26e5a06d63f0b80b043bd198057585
|
|
BLAKE2b-256 checksum How to use checksums |
7010eb68f087c00e85221d79da2991948f6aee6ba7a4ec5d1aac58c07aab15f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / django_admintool_command-0.1.1-py3-none-any.whl
| Download URL | django_admintool_command-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d7c6fc42d6a7d7ee50699af6e74e9f9e62b549a5a1b71d925cfd3ca62b47509
|
|
BLAKE2b-256 checksum How to use checksums |
de0d0826721025db9022c394a95318f41a89acea0089af6b06947b61db90bf08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|