summaryrefslogtreecommitdiffstats
path: root/core/management/commands/dummycmd.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-10 01:14:23 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-10 01:14:23 +0100
commit876868506f9a01ff49e25c501f92a4e89d2a0ffe (patch)
tree4b9426e7820ce100b9c2a73982f7d8cdbe5d5c08 /core/management/commands/dummycmd.py
parent6dc54adec817ff959dafbf436ae3f21ae0dadbd6 (diff)
downloadtroggle-876868506f9a01ff49e25c501f92a4e89d2a0ffe.tar.gz
troggle-876868506f9a01ff49e25c501f92a4e89d2a0ffe.tar.bz2
troggle-876868506f9a01ff49e25c501f92a4e89d2a0ffe.zip
tidy obsolete troggle/code/reset_db
Diffstat (limited to 'core/management/commands/dummycmd.py')
-rw-r--r--core/management/commands/dummycmd.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/core/management/commands/dummycmd.py b/core/management/commands/dummycmd.py
new file mode 100644
index 0000000..0721ec6
--- /dev/null
+++ b/core/management/commands/dummycmd.py
@@ -0,0 +1,30 @@
+import os
+from optparse import make_option
+
+from django.db import connection
+from django.core import management
+from django.core.management.base import BaseCommand, CommandError
+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.
+"""
+
+class Command(BaseCommand):
+ def add_arguments(self, parser):
+ # Positional arguments
+ parser.add_argument('posargs', nargs='+', type=int)
+
+ # Named (optional) arguments
+ parser.add_argument(
+ '--delete',
+ action='store_true',
+ help='Removed as redundant - use databaseReset.py',
+ )
+
+ def handle(self, *args, **options):
+ print(args)
+ print(options)