2012-05-17 08:29:37 +05:30
|
|
|
from django.conf import settings
|
|
|
|
import webapp.settings as default_settings
|
|
|
|
try:
|
|
|
|
settings.configure(default_settings)
|
|
|
|
except RuntimeError:
|
|
|
|
# already configured; ignore
|
|
|
|
pass
|
|
|
|
|
|
|
|
from webapp.grampsdb.models import *
|
|
|
|
from webapp.dbdjango import DbDjango
|
|
|
|
from webapp.reports import import_file
|
2012-05-19 18:41:36 +05:30
|
|
|
from webapp.libdjango import DjangoInterface
|
2012-05-17 08:29:37 +05:30
|
|
|
|
|
|
|
db = DbDjango()
|
2012-05-19 18:41:36 +05:30
|
|
|
dji = DjangoInterface()
|
2012-05-17 08:29:37 +05:30
|
|
|
|
2012-05-19 18:41:36 +05:30
|
|
|
#def Print(m):
|
|
|
|
# print m
|
2012-05-17 17:26:59 +05:30
|
|
|
#import_file(db, "/tmp/dblank-im_ged.ged", Print)
|