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.2.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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_command_form-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7beb857cf2e34a3635e8bee4a65c33af6f9da6520f05e91908c4b544d39491a2
MD5 de23c6093aa9879d7af4773c81b78baf
BLAKE2b-256 62fb7e961d1474f8a9a279a63946d989668032325137cf316526160f536e7400

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_command_form-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f11d8b489ab9623e4758a644ed4a02025a93204b963b7aa4143f37b5f603a0b3
MD5 e7c0e63d073df53a7ff790a6b5802719
BLAKE2b-256 2ba29c1b2bb0511afd8b7d33810f52d92ebd8b32581ed6da79a0fd18346b32b6

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