# this dumpfile is generated by the http://localhost:8080/dump/ script. # this dump script may also generated a .tar file of the /media files. # the .tar file must be untarred first before dsh_load.py is run. # import sys,os,subprocess,logging import dsh_django_config,dsh_django_utils2 dsh_django_utils2.append_to_sys_path( dsh_django_config.lookup('DSH_VOICE_CODE_DIR')) import dsh_utils,dsh_config,dsh_agi os.environ['DJANGO_SETTINGS_MODULE'] = dsh_config.lookup( 'DJANGO_SETTINGS_MODULE') dsh_django_utils2.add_to_sys_path(dsh_config.lookup('django_sys_paths')) from dv2.db.models import Person,Organization,Item,Event,KeyWord,ZObject01,ZObject02,ZObject03,ZObject04,ZObject05,ZObject06,ZObject07,ZObject08 import dsh_django_utils,dsh_dump_models,dsh_dump try: import dumpfile except: print 'failed to find dumpfile.py' sys.exit(1) def init_log():
# Django settings for mysite project. import os.path import dsh_django_config dshDjangoDataRoot = dsh_django_config.lookup('PHONE_DATA_DJANGO_PATH') dshTemplateDir = dsh_django_config.lookup('TEMPLATE_DIR') import dsh_django_utils2 dsh_django_utils2.add_to_sys_path(dsh_django_config.lookup('COMMON_CODE_DIR')) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '*****@*****.**'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. #DATABASE_NAME = os.path.join(os.path.dirname(__file__), 'database/datarepo.db').replace('\\','/') # Or path to database file if using sqlite3. DATABASE_NAME = os.path.join(dshDjangoDataRoot, 'database') DATABASE_USER = '' # Not used with sqlite3. DATABASE_PASSWORD = '' # Not used with sqlite3. DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. #