From 3caae604b3625fb6208d5de7030addf52ff9d9ca Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:17:37 +0100 Subject: [PATCH] [svn] Moved up a directory Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8056 by julian @ 11/2/2008 11:19 PM --- parsers/databaseReset.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 parsers/databaseReset.py diff --git a/parsers/databaseReset.py b/parsers/databaseReset.py deleted file mode 100644 index 97499b0..0000000 --- a/parsers/databaseReset.py +++ /dev/null @@ -1,17 +0,0 @@ -import os -os.environ['PYTHONPATH'] = 'c:\djangoprojects\verfification' -os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' -from django.core import management -from django.db import connection - -cursor = connection.cursor() -cursor.execute("drop database verification") -cursor.execute("create database verification") -cursor.execute("use verification") -management.call_command('syncdb') -from django.contrib.auth.models import User -user = User.objects.create_user('m', 'm@m.com', 'm') -user.is_staff = True -user.is_superuser = True -user.save() -#management.call_command('runserver')