summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/databaseReset.py b/databaseReset.py
index 7d65972..a7d171c 100644
--- a/databaseReset.py
+++ b/databaseReset.py
@@ -27,7 +27,7 @@ import troggle.core.models_survex
from django.core import management
from django.db import connection, close_old_connections, connections
from django.http import HttpResponse
-from django.core.urlresolvers import reverse
+from django.urls import reverse
from django.contrib.auth.models import User
from troggle.core.models_caves import Cave, Entrance
@@ -75,7 +75,7 @@ def reinit_db():
print(" - deleting " + currentdbname)
os.remove(currentdbname)
except OSError:
- print(" ! OSError on removing: " + currentdbname + " (Is the file open in another app?\n")
+ print(" ! OSError on removing: " + currentdbname + " (Is the file open in another app? Is the server running?\n")
raise
else:
print(" - No database file found: " + currentdbname + " ..continuing, will create it.\n")