Changes for webapp to work with gramps40
svn: r22923
This commit is contained in:
parent
196ad8feb7
commit
26c3aa31d7
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user