forked from expo/troggle
Django 'command' system docm
This commit is contained in:
parent
e61bc7416e
commit
2391b5a504
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user