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.3.tar.gz (6.6 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.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_command_form-0.0.3.tar.gz
  • Upload date:
  • Size: 6.6 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.3.tar.gz
Algorithm Hash digest
SHA256 78b63ee52dcf767e51834a48ade99a951469a703c3ee05bb528ae5a79e5ee5ca
MD5 6c5eb924b900271e173f666200a76bc0
BLAKE2b-256 5d690d27c877ec1225741bd2ea4bedbe467b8ca18c05b7ec2e91198057f626c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_command_form-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0765eeca57398a722c48a13b015a1d7cb7a80b62c8fbec9782b05d05350722cf
MD5 f1aa116fae2697d29c0ccfafefa894b6
BLAKE2b-256 51295ee6fc58399b5b2ddbb72309907dad0b9903d9dccfc61556e7409949a1fa

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