This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A reusable Django app that allows to list manage.py commands and lauch them with one click.

Installation

To get the latest stable release from PyPi

pip install django-command-interface

To get the latest commit from GitHub

pip install -e git+git://github.com/bitmazk/django-command-interface.git#egg=command_interface

TODO: Describe further installation steps (edit / remove the examples below):

Add command_interface to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'command_interface',
)

Add the command_interface URLs to your urls.py

urlpatterns = patterns('',
    ...
    url(r'^command-interface/', include('command_interface.urls')),
)

This app uses the Django messages framework, so you need to add django.contrib.messages.middleware.MessageMiddleware to your MIDDLEWARE_CLASSES setting.

You HAVE to have DJANGO_PROJECT_ROOT in your settings pointing towards the directory of your manage.py file.

Usage

Just visit the command interface main panel at view name command_interface_main and see listed all the commands, that you can execute just by clicking “Run command”.

That’s it.

Passing arguments to the commands is still WIP.

Settings

COMMAND_INTERFACE_DISPLAYED_APPS

You can limit the displayed apps by setting COMMAND_INTERFACE_DISPLAYED_APPS. The syntax is the same as it is in the INSTALLED_APPS setting. It defaults to showing absolutely all apps.

# would list all commands of the awesome_app
COMMAND_INTERFACE_DISPLAYED_APPS = ['awesome_app']

COMMAND_INTERFACE_DISPLAYED_COMMANDS

Further you can also provide a list of commands, that should explicitly be displayed. Defaults to all as well.

# would on its own only show the mycommand command
COMMAND_INTERFACE_DISPLAYED_COMMANDS = ['mycommand']

The settings don’t exclude each other. So displaying any full app and just one or two specific commands from somewhere else is no problem at all.

COMMAND_INTERFACE_LOGFILE_PATH

For logging, you can specify a logfile path, where logfiles for each command can be created. The logfiles will always be prefixed with command_interface_log-.

..code-block:: python

COMMAND_INTERFACE_LOGFILE_PATH = ‘/home/myname/tmp/logs/’

This value defaults to None, which means, that no logs are created.

The log of the last run is then displayed on the command interface main view under each respective command.

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-command-interface
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
Release History

Release History

0.5

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-command-interface-0.5.tar.gz (11.3 kB) Copy SHA256 Checksum SHA256 Source Sep 1, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting