2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

Django 'command' system docm

This commit is contained in:
Philip Sargent 2021-11-11 19:34:59 +02:00
parent e61bc7416e
commit 2391b5a504

View File

@ -9,8 +9,19 @@ from django.contrib.auth.models import User
import settings import settings
"""this is now replaced by databaseRest.py """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): class Command(BaseCommand):