|
0
|
1 |
import os, logging |
|
|
2 |
|
|
|
3 |
SITE_ID = 1 |
|
|
4 |
|
|
|
5 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/" |
|
3
|
6 |
BASE_URL = '/~ymh/platform/' |
|
0
|
7 |
WEB_URL = 'http://localhost/' |
|
|
8 |
MEDIA_BASE_URL = BASE_URL + 'static/' |
|
|
9 |
STREAM_URL = MEDIA_BASE_URL + "/content/" |
|
|
10 |
|
|
|
11 |
STREAM_SRC_PREFIX = "" |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
# Absolute path to the directory that holds media. |
|
|
15 |
# Example: "/home/media/media.lawrence.com/" |
|
|
16 |
MEDIA_ROOT = os.path.abspath(BASE_DIR + "../static/") |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
|
21 |
# trailing slash if there is a path component (optional in other cases). |
|
|
22 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
|
23 |
MEDIA_URL = MEDIA_BASE_URL |
|
|
24 |
|
|
|
25 |
CONTENT_ROOT = MEDIA_ROOT + "media/content/" |
|
|
26 |
|
|
|
27 |
STREAM_PATH = CONTENT_ROOT |
|
|
28 |
|
|
|
29 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
|
30 |
# trailing slash. |
|
|
31 |
# Examples: "http://foo.com/media/", "/media/". |
|
|
32 |
ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/' |
|
|
33 |
LDT_MEDIA_PREFIX = MEDIA_URL + 'ldt/' |
|
|
34 |
|
|
|
35 |
DATABASES = { |
|
|
36 |
'default': { |
|
|
37 |
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
3
|
38 |
'NAME': 'platform', # Or path to database file if using sqlite3. |
|
0
|
39 |
'USER': 'iri', # Not used with sqlite3. |
|
|
40 |
'PASSWORD': 'iri', # Not used with sqlite3. |
|
|
41 |
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. |
|
|
42 |
'PORT': '5432', # Set to empty string for default. Not used with sqlite3. |
|
|
43 |
} |
|
|
44 |
} |
|
|
45 |
|
|
|
46 |
DEBUG = True |
|
|
47 |
TEMPLATE_DEBUG = DEBUG |
|
|
48 |
|
|
|
49 |
LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../log/log.txt")) |
|
|
50 |
LOG_LEVEL = logging.DEBUG |
|
|
51 |
|
|
|
52 |
INDEX_PATH = os.path.abspath(BASE_DIR + "../index/") |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
ADMINS = ( |
|
|
56 |
# ('Your Name', 'your_email@domain.com'), |
|
|
57 |
) |
|
|
58 |
|
|
|
59 |
MANAGERS = ADMINS |
|
|
60 |
|
|
|
61 |
EMAIL_USE_TLS = True |
|
|
62 |
EMAIL_HOST = 'smtp.gmail.com' |
|
|
63 |
EMAIL_HOST_USER = 'iri.ddc@gmail.com' |
|
|
64 |
EMAIL_HOST_PASSWORD = 'ddciripompidou' |
|
|
65 |
EMAIL_PORT = 587 |
|
|
66 |
|
|
|
67 |
ACCOUNT_ACTIVATION_DAYS = 7 |
|
|
68 |
REGISTRATION_OPEN = False |
|
|
69 |
|
|
|
70 |
LDT_MAX_SEARCH_NUMBER = 50 |
|
29
|
71 |
LDT_JSON_DEFAULT_INDENT = 0 |
|
0
|
72 |
|
|
|
73 |
EMPTY_MEDIA_EXTERNALID = None |