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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django_command_message-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 230150dcfe5d8c979855c45371a5d227a6f3362a33c4a7457890f51121450c6a |
|
MD5 | d7faaf3661cf7f7783234c0059a18943 |
|
BLAKE2b-256 | 22668ca3ce7c1083276cb49730a9ee105fbf69629812743ccd419c007c7f40e7 |