Changes for webapp to work with gramps40

svn: r22923
This commit is contained in:
Doug Blank 2013-08-28 23:08:21 +00:00
parent 196ad8feb7
commit 26c3aa31d7
2 changed files with 4 additions and 1 deletions

View File

@ -23,8 +23,10 @@
# Need to be able to import Gramps files from here. # Need to be able to import Gramps files from here.
from gramps.gen.const import DATA_DIR, WEB_DIR
import os import os
os.environ['GRAMPS_RESOURCES'] = os.path.dirname(os.path.abspath(".."))
from gramps.gen.const import DATA_DIR, WEB_DIR
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG

View File

@ -26,6 +26,7 @@
#### >>> Person.objects.all() #### >>> Person.objects.all()
import os import os
os.environ['GRAMPS_RESOURCES'] = os.path.dirname(os.path.abspath(".."))
pystartup = os.path.expanduser("~/.pystartup") pystartup = os.path.expanduser("~/.pystartup")
if os.path.exists(pystartup): if os.path.exists(pystartup):
execfile(pystartup) execfile(pystartup)