1 import os, logging |
|
2 |
|
3 SITE_ID = 1 |
|
4 |
|
5 BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/" |
|
6 BASE_URL = '/regards/' |
|
7 WEB_URL = 'http://localhost/' |
|
8 STATIC_URL = BASE_URL + 'static/' |
|
9 |
|
10 |
|
11 STREAM_URL = "rtmp://localhost/vod/" |
|
12 |
|
13 STREAM_SRC_PREFIX = "" |
|
14 |
|
15 #BASE_STATIC_ROOT = os.path.abspath(BASE_DIR + "../static/").rstrip("/")+"/" |
|
16 BASE_STATIC_ROOT = os.path.abspath(BASE_DIR + "static/").rstrip("/")+"/" |
|
17 |
|
18 # Absolute path to the directory that holds media. |
|
19 # Example: "/home/media/media.lawrence.com/" |
|
20 MEDIA_ROOT = BASE_STATIC_ROOT + "media/" |
|
21 |
|
22 |
|
23 # Absolute path to the directory that static files (js, css, swf...) |
|
24 # DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder |
|
25 #STATIC_ROOT = BASE_STATIC_ROOT + "site/" |
|
26 STATIC_ROOT = BASE_STATIC_ROOT |
|
27 |
|
28 # PATH to the ffmpeg executable, used to know automatically the media file duration |
|
29 FFMPEG_PATH = "/Applications/Lignes de temps/pkg/ffmpeg_mac" |
|
30 |
|
31 |
|
32 CONTENT_ROOT = BASE_STATIC_ROOT + "media/content/" |
|
33 |
|
34 # PATH where uploaded media are put. |
|
35 STREAM_PATH = "/Users/tc/dev/wowza_medias/" |
|
36 |
|
37 |
|
38 DATABASES = { |
|
39 'default': { |
|
40 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
41 'NAME': 'regards_hg', # Or path to database file if using sqlite3. |
|
42 'USER': 'admin', # Not used with sqlite3. |
|
43 'PASSWORD': 'admin', # Not used with sqlite3. |
|
44 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. |
|
45 'PORT': '5432', # Set to empty string for default. Not used with sqlite3. |
|
46 } |
|
47 } |
|
48 |
|
49 DEBUG = True |
|
50 TEMPLATE_DEBUG = DEBUG |
|
51 |
|
52 #LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../log/log.txt")) |
|
53 LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"log/log.txt")) |
|
54 LOG_LEVEL = logging.DEBUG |
|
55 |
|
56 #INDEX_PATH = os.path.abspath(BASE_DIR + "../index/") |
|
57 INDEX_PATH = os.path.abspath(BASE_DIR + "index/") |
|
58 |
|
59 |
|
60 ADMINS = ( |
|
61 # ('Your Name', 'your_email@domain.com'), |
|
62 ) |
|
63 |
|
64 MANAGERS = ADMINS |
|
65 |
|
66 EMAIL_USE_TLS = True |
|
67 EMAIL_HOST = 'smtp.gmail.com' |
|
68 EMAIL_HOST_USER = 'contact.iri@gmail.com' |
|
69 EMAIL_HOST_PASSWORD = 'Oach8quo' |
|
70 EMAIL_PORT = 587 |
|
71 |
|
72 ACCOUNT_ACTIVATION_DAYS = 7 |
|
73 REGISTRATION_OPEN = False |
|
74 |
|
75 LDT_MAX_SEARCH_NUMBER = 50 |
|
76 LDT_MAX_FRAGMENT_PER_SEARCH = 3 |
|
77 LDT_RESULTS_PER_PAGE = 1 |
|
78 LDT_JSON_DEFAULT_INDENT = 0 |
|
79 |
|
80 EMPTY_MEDIA_EXTERNALID = None |
|
81 |
|
82 AUTO_INDEX_AFTER_SAVE = True |
|