diff -r 368be7c741c4 -r 40d6b5e3dcd7 web/config.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/config.py Fri Sep 30 16:06:04 2011 +0200 @@ -0,0 +1,82 @@ +import os, logging + +SITE_ID = 1 + +BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/" +BASE_URL = '/regards/' +WEB_URL = 'http://localhost/' +STATIC_URL = BASE_URL + 'static/' + + +STREAM_URL = "rtmp://localhost/vod/" + +STREAM_SRC_PREFIX = "" + +#BASE_STATIC_ROOT = os.path.abspath(BASE_DIR + "../static/").rstrip("/")+"/" +BASE_STATIC_ROOT = os.path.abspath(BASE_DIR + "static/").rstrip("/")+"/" + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = BASE_STATIC_ROOT + "media/" + + +# Absolute path to the directory that static files (js, css, swf...) +# DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder +#STATIC_ROOT = BASE_STATIC_ROOT + "site/" +STATIC_ROOT = BASE_STATIC_ROOT + +# PATH to the ffmpeg executable, used to know automatically the media file duration +FFMPEG_PATH = "/Applications/Lignes de temps/pkg/ffmpeg_mac" + + +CONTENT_ROOT = BASE_STATIC_ROOT + "media/content/" + +# PATH where uploaded media are put. +STREAM_PATH = "/Users/tc/dev/wowza_medias/" + + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'regards_hg', # Or path to database file if using sqlite3. + 'USER': 'admin', # Not used with sqlite3. + 'PASSWORD': 'admin', # Not used with sqlite3. + 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '5432', # Set to empty string for default. Not used with sqlite3. + } +} + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +#LOG_FILE = os.path.abspath(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/") +INDEX_PATH = os.path.abspath(BASE_DIR + "index/") + + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), +) + +MANAGERS = ADMINS + +EMAIL_USE_TLS = True +EMAIL_HOST = 'smtp.gmail.com' +EMAIL_HOST_USER = 'contact.iri@gmail.com' +EMAIL_HOST_PASSWORD = 'Oach8quo' +EMAIL_PORT = 587 + +ACCOUNT_ACTIVATION_DAYS = 7 +REGISTRATION_OPEN = False + +LDT_MAX_SEARCH_NUMBER = 50 +LDT_MAX_FRAGMENT_PER_SEARCH = 3 +LDT_RESULTS_PER_PAGE = 1 +LDT_JSON_DEFAULT_INDENT = 0 + +EMPTY_MEDIA_EXTERNALID = None + +AUTO_INDEX_AFTER_SAVE = True