summaryrefslogtreecommitdiffstats
path: root/core/management/commands
diff options
context:
space:
mode:
authorPhilip Sargent <philip@Muscogee.localdomain>2020-05-15 21:32:55 +0100
committerPhilip Sargent <philip@Muscogee.localdomain>2020-05-15 21:32:55 +0100
commitd4ac28af18ef41661c299a1b9fc1f630cda6193c (patch)
treebe6a0200be3459835c21769a8073c6c45739d00d /core/management/commands
parent931aa4e3cba04382b8d8c94658c7a871c739be5b (diff)
downloadtroggle-d4ac28af18ef41661c299a1b9fc1f630cda6193c.tar.gz
troggle-d4ac28af18ef41661c299a1b9fc1f630cda6193c.tar.bz2
troggle-d4ac28af18ef41661c299a1b9fc1f630cda6193c.zip
Remove PHOTOS_ROOT and DPhoto class
Diffstat (limited to 'core/management/commands')
-rw-r--r--core/management/commands/reset_db.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/management/commands/reset_db.py b/core/management/commands/reset_db.py
index e95ddd9..c55a0b1 100644
--- a/core/management/commands/reset_db.py
+++ b/core/management/commands/reset_db.py
@@ -11,6 +11,9 @@ from django.core.urlresolvers import reverse
from troggle.core.models import Cave, Entrance
import troggle.flatpages.models
+"""Pretty much all of this is now replaced by databaseRest.py
+I don't know why this still exists
+"""
databasename=settings.DATABASES['default']['NAME']
expouser=settings.EXPOUSER
expouserpass=settings.EXPOUSERPASS
@@ -89,9 +92,10 @@ class Command(BaseCommand):
def make_dirs(obj):
"""Make directories that troggle requires"""
+ pass
# should also deal with permissions here.
- if not os.path.isdir(settings.PHOTOS_ROOT):
- os.mkdir(settings.PHOTOS_ROOT)
+ #if not os.path.isdir(settings.PHOTOS_ROOT):
+ #os.mkdir(settings.PHOTOS_ROOT)
def import_caves(obj):
import parsers.caves