Giter Site home page Giter Site logo

daadu / django-admintool-command Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 34 KB

Run django mangement commands from django-admin site

Home Page: https://pypi.org/project/django-admintool-command

License: MIT License

Makefile 2.08% Python 89.76% HTML 8.15%
django django-application django-admin django-framework django2 django-management-command django-commands django-admin-tools

django-admintool-command's Introduction

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')),
]

NOTE: if you are using admin prefixed url in Django 3.2+ for admintool_command and admin.site both then put it above the "admin" site url or else you will get HTTP 404.

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.

django-admintool-command's People

Contributors

daadu avatar jayvdb avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jayvdb

django-admintool-command's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.