2019-03-30 13:58:38 +00:00
|
|
|
import os
|
2020-05-28 02:09:36 +01:00
|
|
|
from optparse import make_option
|
2019-03-30 13:58:38 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-05-28 02:09:36 +01:00
|
|
|
from troggle.core.models import Cave, Entrance
|
2019-03-30 13:58:38 +00:00
|
|
|
import troggle.flatpages.models
|
2019-02-25 23:10:24 +00:00
|
|
|
|
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
|
|
|
"""
|
2019-02-25 23:10:24 +00:00
|
|
|
|
|
|
|
class Command(BaseCommand):
|
2020-05-28 02:09:36 +01:00
|
|
|
help = 'Removed as redundant - use databaseReset.py'
|
2019-02-25 23:10:24 +00:00
|
|
|
|
|
|
|
option_list = BaseCommand.option_list + (
|
2019-03-30 13:58:38 +00:00
|
|
|
make_option('--reset',
|
2019-02-25 23:10:24 +00:00
|
|
|
action='store_true',
|
2019-03-30 13:58:38 +00:00
|
|
|
dest='reset',
|
2019-02-25 23:10:24 +00:00
|
|
|
default=False,
|
2020-05-28 02:09:36 +01:00
|
|
|
help='Removed as redundant'),
|
2019-02-25 23:10:24 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
|
|
|
print(args)
|
|
|
|
print(options)
|