Skip to main content

Django command messages framework

Project description

Installation

$ pip install django-command-message

settings.py

INSTALLED_APPS+=['django_command_message']

migrate

$ python manage.py migrate

Features

  • database
  • admin
  • print message if settings.DEBUG==True

Models

model table columns/fields
Command django_command_message id,command,message,created_at

Examples

CommandMessageMixin

from django_command_message.mixins import CommandMessageMixin

class Command(CommandMessageMixin,BaseCommand):
    def handle(self, *args, **options):
        self.message('message')

Message model

from django_command_message.models import Message

Message(command='name',message="message").save()

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_message-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django_command_message-0.0.1.tar.gz
Algorithm Hash digest
SHA256 230150dcfe5d8c979855c45371a5d227a6f3362a33c4a7457890f51121450c6a
MD5 d7faaf3661cf7f7783234c0059a18943
BLAKE2b-256 22668ca3ce7c1083276cb49730a9ee105fbf69629812743ccd419c007c7f40e7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page