Skip to main content

UNKNOWN

Project description

Django Actions
==============

Simple interface to do things.


Setup
-----

Add `'django_actions'` to your `INSTALLED_APPS`.

Set `ACTIONS_PATH` to the python module/package where your actions will live.

Add `url(r'^actions/', include('django_actions.urls'))` to your `urls.py`.

Create your actions:

# actions.py
from django_actions import action
from django.contrib.auth.models import User


@action('Create Admin', 'name', 'password')
def create_admin_account_if_not_created(name, password):
if not User.objects.filter(username=name).count():
User.objects.create_superuser(name, '', password)


Now just `http://myserver.com/actions/` to see your interface to do things.

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-actions-0.0.1.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file django-actions-0.0.1.tar.gz.

File metadata

File hashes

Hashes for django-actions-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9aff515d7b8538ccabbfefe485e56d4763067659f7841d72e5e2d8c9a1663d75
MD5 23ce76299202ef6ff2fce178f39084c1
BLAKE2b-256 2e923d4ab7c5efa167c87aa8195a5ed57e422885bde8da0bb7b88b4bd743e221

See more details on using hashes here.

Supported by

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