summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'example_project/settings.py')
-rw-r--r--example_project/settings.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 6a0bf4079..e124198aa 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -10,6 +10,9 @@ DEBUG_TOOLBAR = False
TEMPLATE_DEBUG = DEBUG
SQL_DEBUG = False
+if "test" in sys.argv:
+ sys.path.insert(0, '..')
+
IMAGE_MAX_SIZE = (1024, 768)
THUMB_MAX_SIZE = (300, 300)
@@ -17,13 +20,17 @@ CACHE_SMALLTIMEOUT = 120
CACHE_TIMEOUT = 3600
CACHE_BACKEND = 'memcached://127.0.0.1:11211/'
-ROOT_PATH = os.path.abspath(os.path.curdir) + os.path.sep
+SEP = os.path.sep
+ROOT_PATH = SEP.join(
+ os.path.abspath(__file__).split(SEP)[:-1]) + SEP
STATIC_URL = '/static/'
STATIC_ROOT = ROOT_PATH + 'static/'
BASE_URL = "/"
-
URL_PATH = ""
+# prefix for archaeological files code
+FILE_PREFIX = "SRA"
+
ODT_TEMPLATE = ROOT_PATH + "../ishtar_common/static/template.odt"
LOGIN_REDIRECT_URL = "/" + URL_PATH