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 hashes)

Uploaded Source

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