| author | cavaliet |
| Wed, 11 May 2011 16:19:46 +0200 | |
| changeset 104 | b62a2a3e272d |
| parent 103 | 5578dcb54f4d |
| child 106 | 2affc8a44dfb |
| permissions | -rw-r--r-- |
| 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/' |
|
104
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
8 |
STATIC_URL = BASE_URL + 'static/' |
| 0 | 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 |
||
|
104
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
19 |
# Absolute path to the directory that static files (js, css, swf...) |
|
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
20 |
# DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder |
|
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
21 |
STATIC_ROOT = "C:/user/myfolder/my_platform/platform/web/static" |
|
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
22 |
|
| 0 | 23 |
|
24 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
25 |
# trailing slash if there is a path component (optional in other cases). |
|
26 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
|
|
104
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
27 |
MEDIA_URL = STATIC_URL |
| 0 | 28 |
|
29 |
CONTENT_ROOT = MEDIA_ROOT + "media/content/" |
|
30 |
||
31 |
STREAM_PATH = CONTENT_ROOT |
|
32 |
||
33 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
|
34 |
# trailing slash. |
|
35 |
# Examples: "http://foo.com/media/", "/media/". |
|
|
104
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
36 |
ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' |
|
b62a2a3e272d
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents:
103
diff
changeset
|
37 |
LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/' |
| 0 | 38 |
|
39 |
DATABASES = { |
|
40 |
'default': { |
|
41 |
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
| 3 | 42 |
'NAME': 'platform', # Or path to database file if using sqlite3. |
| 0 | 43 |
'USER': 'iri', # Not used with sqlite3. |
44 |
'PASSWORD': 'iri', # Not used with sqlite3. |
|
45 |
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. |
|
46 |
'PORT': '5432', # Set to empty string for default. Not used with sqlite3. |
|
47 |
} |
|
48 |
} |
|
49 |
||
50 |
DEBUG = True |
|
51 |
TEMPLATE_DEBUG = DEBUG |
|
52 |
||
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 |
||
58 |
||
59 |
ADMINS = ( |
|
60 |
# ('Your Name', 'your_email@domain.com'), |
|
61 |
) |
|
62 |
||
63 |
MANAGERS = ADMINS |
|
64 |
||
65 |
EMAIL_USE_TLS = True |
|
66 |
EMAIL_HOST = 'smtp.gmail.com' |
|
67 |
EMAIL_HOST_USER = 'iri.ddc@gmail.com' |
|
68 |
EMAIL_HOST_PASSWORD = 'ddciripompidou' |
|
69 |
EMAIL_PORT = 587 |
|
70 |
||
71 |
ACCOUNT_ACTIVATION_DAYS = 7 |
|
72 |
REGISTRATION_OPEN = False |
|
73 |
||
74 |
LDT_MAX_SEARCH_NUMBER = 50 |
|
| 29 | 75 |
LDT_JSON_DEFAULT_INDENT = 0 |
| 0 | 76 |
|
77 |
EMPTY_MEDIA_EXTERNALID = None |
|
|
103
5578dcb54f4d
merge context_processors.py and enable upload cancel and remove temp file. Creation of a session temp folder for upload.
cavaliet
parents:
29
diff
changeset
|
78 |
|
|
5578dcb54f4d
merge context_processors.py and enable upload cancel and remove temp file. Creation of a session temp folder for upload.
cavaliet
parents:
29
diff
changeset
|
79 |
AUTO_INDEX_AFTER_SAVE = True |
|
5578dcb54f4d
merge context_processors.py and enable upload cancel and remove temp file. Creation of a session temp folder for upload.
cavaliet
parents:
29
diff
changeset
|
80 |