summaryrefslogtreecommitdiffstats
path: root/core/management
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2021-11-11 19:34:59 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2021-11-11 19:34:59 +0200
commit2391b5a504502cb26c8188ac933b35c82621eb89 (patch)
tree474068a65f8172cde4dbd039d42621c41e4db11a /core/management
parente61bc7416e7db1fc9ba6363d2af1f95591de1b7e (diff)
downloadtroggle-2391b5a504502cb26c8188ac933b35c82621eb89.tar.gz
troggle-2391b5a504502cb26c8188ac933b35c82621eb89.tar.bz2
troggle-2391b5a504502cb26c8188ac933b35c82621eb89.zip
Django 'command' system docm
Diffstat (limited to 'core/management')
-rw-r--r--core/management/commands/dummycmd.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/core/management/commands/dummycmd.py b/core/management/commands/dummycmd.py
index 0721ec6..3628cf8 100644
--- a/core/management/commands/dummycmd.py
+++ b/core/management/commands/dummycmd.py
@@ -9,8 +9,19 @@ from django.contrib.auth.models import User
import settings
"""this is now replaced by databaseRest.py
-I don't know why this still exists. Needs testing to see if
-removing it makes django misbehave.
+
+This is an example of how to create our own bespoke commandline
+commands.
+
+Good articles on creating Django commands at
+https://www.mattlayman.com/understand-django/command-apps/
+https://www.geeksforgeeks.org/custom-django-management-commands/
+
+Django docs:
+https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/
+
+We might use this mechanism to replace/enhance the
+folk, wallets and any cron jobs or other standalone scripts.
"""
class Command(BaseCommand):