--- a/src/p4l/config.py.tmpl Sat Sep 28 02:55:26 2013 +0200
+++ b/src/p4l/config.py.tmpl Mon Sep 30 14:52:02 2013 +0200
@@ -39,10 +39,18 @@
SITE_ID = 1
+#absolute path of the src folder
BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
+
+#absolute url of the website without the host nor the protocol
BASE_URL = '/~ymh/p4l/'
+
+#Host and protocol of the website
WEB_URL = 'http://localhost'
-BASE_STATIC_URL = WEB_URL + BASE_URL + 'static/'
+
+#absolute url of the website static resources
+BASE_STATIC_URL = WEB_URL + BASE_URL + 'static/'
+# absolute path for the website static resources
BASE_STATIC_ROOT = os.path.abspath(BASE_DIR + "../../web/static/").rstrip("/")+"/"
# Absolute filesystem path to the directory that will hold user-uploaded files.
@@ -70,9 +78,13 @@
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'p4l.wsgi.application'
+#absolute patrh to the logging file
LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../../run/log/log.txt"))
+#logging level
LOG_LEVEL = logging.DEBUG
+
+#logging configuration
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
@@ -135,6 +147,7 @@
}
}
+#haystack connections
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
@@ -143,9 +156,12 @@
},
}
+# Control the activation of the real time indexing.
REALTIME_INDEXING = True
+# pagination of the list of record
NB_RECORDS_BY_PAGE = 20
+
+# url of the sesame repository containing all the rdf referentials
SPARQL_QUERY_ENDPOINT = "http://localhost:8080/openrdf-sesame/repositories/plan4learning"
-