diff --git a/databaseReset.py b/databaseReset.py index fe59804..3ef98c3 100644 --- a/databaseReset.py +++ b/databaseReset.py @@ -8,6 +8,8 @@ from django.db import connection from django.contrib.auth.models import User from django.http import HttpResponse +logfile=settings.LOGFILE + def reload_db(): cursor = connection.cursor() cursor.execute("drop database %s" % settings.DATABASE_NAME) @@ -35,7 +37,7 @@ def import_people(): parsers.people.LoadPersonsExpos() def import_logbooks(): - settings.LOGFILE.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60) + logfile.write('\nBegun importing logbooks at ' + time.asctime() +'\n'+'-'*60) import parsers.logbooks parsers.logbooks.LoadLogbooks()