2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-12-04 23:52:18 +00:00
troggle/core/management/commands/reset_db.py

34 lines
943 B
Python
Raw Normal View History

import os
2020-05-28 02:09:36 +01:00
from optparse import make_option
from django.db import connection
from django.core import management
from django.core.urlresolvers import reverse
2020-05-28 02:09:36 +01:00
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from troggle.core.models import Cave, Entrance
import troggle.flatpages.models
2020-05-28 02:09:36 +01:00
import settings
2020-05-15 21:32:55 +01:00
"""Pretty much all of this is now replaced by databaseRest.py
2020-05-28 02:09:36 +01:00
I don't know why this still exists. Needs testing to see if
removing it makes django misbehave.
2020-05-15 21:32:55 +01:00
"""
class Command(BaseCommand):
2020-05-28 02:09:36 +01:00
help = 'Removed as redundant - use databaseReset.py'
option_list = BaseCommand.option_list + (
make_option('--reset',
action='store_true',
dest='reset',
default=False,
2020-05-28 02:09:36 +01:00
help='Removed as redundant'),
)
def handle(self, *args, **options):
print(args)
print(options)