Skip to main content

A reusable Django app that allows to run mangement commands from admin site

Project description

Django Admin Tool Command

image

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-admintool-command-0.1.1.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distribution

django_admintool_command-0.1.1-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page