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

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_command_form-0.0.1.tar.gz
  • Upload date:
  • Size: 6.5 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.1.tar.gz
Algorithm Hash digest
SHA256 bd8c440c1922ab01246e971392b2e1ae43d4768e6f8969c219fa87141f5a241f
MD5 0a7b72a8fc1a69290410889c6ef306e9
BLAKE2b-256 5acacf85f3ee6fc763cd83d37be6625d3762184c2e1dc84b678b31f53466155b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_command_form-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dda97f1d9e9f04e20ba700b0746f3c74fabb157562a524558947038da24ee59c
MD5 a067cd873bc739d5fe5866b013845582
BLAKE2b-256 35668378873b8608e7e2f34dbc16d1067fd3a777656dc85301b634413076bb36

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