correct template
authorymh <ymh.work@gmail.com>
Mon, 25 Oct 2010 17:24:56 +0200
changeset 109 7e86fb14be1f
parent 107 7984d3785560
child 110 0f19651f8c32
correct template
web/franceculture/config.py.tmpl
--- a/web/franceculture/config.py.tmpl	Wed Oct 20 17:28:09 2010 +0200
+++ b/web/franceculture/config.py.tmpl	Mon Oct 25 17:24:56 2010 +0200
@@ -2,7 +2,7 @@
 
 SITE_ID = 1
 
-BASE_DIR = os.path.dirname(os.path.abspath(__file__)).lstrip("/")+"/"
+BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
 BASE_URL = '/~ymh/franceculture/'
 WEB_URL = 'http://localhost/'
 MEDIA_BASE_URL = BASE_URL + 'static/'
@@ -46,7 +46,7 @@
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG
 
-LOG_FILE = os.path.join(BASE_DIR,"../log/log.txt")
+LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../log/log.txt"))
 LOG_LEVEL = logging.DEBUG
 
 INDEX_PATH = os.path.abspath(BASE_DIR + "../index/")