Cleanup pexp commands, remove direct settings import

fix_request_path_info
Diederik van der Boor 2013-03-28 13:52:44 +01:00
parent 1d42927382
commit addf2854e1
4 changed files with 0 additions and 15 deletions

View File

@ -8,7 +8,6 @@ import uuid
from django.core.management.base import NoArgsCommand
from django.db.models import connection
from pprint import pprint
import settings
import time,sys
from pexp.models import *
@ -44,9 +43,6 @@ class Command(NoArgsCommand):
help = ""
def handle_noargs(self, **options):
print 'polycmd - sqlite test db is stored in:',settings.SQLITE_DB_PATH
print
if False:
ModelA.objects.all().delete()
a=ModelA.objects.create(field1='A1')

View File

@ -6,7 +6,6 @@ This module is a scratchpad for general development, testing & debugging.
from django.core.management.base import NoArgsCommand
from django.db.models import connection
from pprint import pprint
import settings
from pexp.models import *
@ -20,9 +19,6 @@ class Command(NoArgsCommand):
help = ""
def handle_noargs(self, **options):
print 'polycmd - sqlite test db is stored in:',settings.SQLITE_DB_PATH
print
Project.objects.all().delete()
a=Project.objects.create(topic="John's gathering")
b=ArtProject.objects.create(topic="Sculpting with Tim", artist="T. Turner")

View File

@ -6,7 +6,6 @@ This module is a scratchpad for general development, testing & debugging
from django.core.management.base import NoArgsCommand
from django.db.models import connection
from pprint import pprint
import settings
import sys
from pexp.models import *
@ -90,8 +89,6 @@ class Command(NoArgsCommand):
help = ""
def handle_noargs(self, **options):
print 'polybench - sqlite test db is stored in:',settings.SQLITE_DB_PATH
func_list = [
( bench_delete, 1 ),
( bench_create, 1 ),

View File

@ -6,7 +6,6 @@ This module is a scratchpad for general development, testing & debugging
from django.core.management.base import NoArgsCommand
from django.db.models import connection
from pprint import pprint
import settings
from pexp.models import *
@ -20,9 +19,6 @@ class Command(NoArgsCommand):
help = ""
def handle_noargs(self, **options):
print 'polycmd - sqlite test db is stored in:',settings.SQLITE_DB_PATH
print
Project.objects.all().delete()
o=Project.objects.create(topic="John's gathering")
o=ArtProject.objects.create(topic="Sculpting with Tim", artist="T. Turner")