forked from expo/troggle
tidy obsolete troggle/code/reset_db
This commit is contained in:
30
core/management/commands/dummycmd.py
Normal file
30
core/management/commands/dummycmd.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user