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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_command_form-0.0.4.tar.gz
  • Upload date:
  • Size: 7.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.4.tar.gz
Algorithm Hash digest
SHA256 8e6fa3280da9b5797e9931a3eda3ae0fa6da7fbc0ba420508ed32cbcb03eb410
MD5 de2757a6d82e387f0bf72d3faa85bf72
BLAKE2b-256 32a38338c5176bdbac0e8967b2523b7df2b24ac7705d03b03e4f78c08d54bd76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_command_form-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7327242172c75086b2b180c704f6894cce8f2801c7b4fcb7640c9ae0ad08f3
MD5 c0f6176d37216ef2695159f32c6f150b
BLAKE2b-256 7461f8824a29b2c28d6eb9d785cf62ba03d1a8682f6edfaa70e593c7d459eb4e

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