Skip to main content

A package that allows you to execute commands from DjangoAdmin.

Project description

Pypi Package

Django Command Form

This package allows you to execute commands from DjangoAdmin.

Sample

Getting Started

$ pip install django-command-form

In your settings.py, add django_command_form to INSTALLED_APPS.

INSTALLED_APPS = [
    ...
    'django_command_form',
]

In your models.py, create a class that inherits CommandModel.
The class name is displayed as the name of the list in DjangoAdmin.

from django_command_form.models import CommandModel


class Command(CommandModel):
    class Meta:
        proxy = True

Then, in admin.py, register the model with CommandAdmin.

from django_command_form.admin import CommandAdmin


admin.site.register(Command, CommandAdmin)

Compatible Django Version

Compatible Django Version Specifically tested
4.0 :heavy_check_mark:
4.1 :heavy_check_mark:
4.2 :heavy_check_mark:
5.0 :heavy_check_mark:
5.1 :heavy_check_mark:

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_command_form-0.0.5.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_command_form-0.0.5-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file django_command_form-0.0.5.tar.gz.

File metadata

  • Download URL: django_command_form-0.0.5.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for django_command_form-0.0.5.tar.gz
Algorithm Hash digest
SHA256 07b4ada4f1c76c1701d35b36483fb64ad82245a8edbeda199a4d70c81dd33922
MD5 b09b4d988ad53312c87157860fd80f6f
BLAKE2b-256 4434d3b71f13ab3eb9c22f9ee0e095bab8060cc4a4ade0ed62587c35167b54d3

See more details on using hashes here.

File details

Details for the file django_command_form-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_command_form-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3ee10878598bed06f0eeb9db140b6e2970e51843427f709eb2ab24ea446ee348
MD5 dd7fed99ae717ea902963086bd3b9d77
BLAKE2b-256 a8876a3d0cd4805a9eba41d2246dee612e4eb3b813d3d2c78fb20e303f5925cd

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