| author | ymh <ymh.work@gmail.com> |
| Sun, 11 Mar 2012 22:53:13 +0100 | |
| changeset 142 | 8411d69b3ad9 |
| parent 11 | 143ab88d17f8 |
| child 176 | ec356aa158a1 |
| permissions | -rw-r--r-- |
| 0 | 1 |
import os |
2 |
||
3 |
BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/" |
|
4 |
BASE_URL = '/~ymh/hdabo/' |
|
5 |
WEB_URL = 'http://localhost' |
|
6 |
||
7 |
# Absolute filesystem path to the directory that will hold user-uploaded files. |
|
8 |
# Example: "/home/media/media.lawrence.com/media/" |
|
9 |
MEDIA_ROOT = os.path.abspath(BASE_DIR + "../static/media/") |
|
10 |
||
11 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
12 |
# trailing slash. |
|
13 |
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" |
|
14 |
MEDIA_URL = BASE_URL + "static/media/" |
|
15 |
||
16 |
# Absolute path to the directory static files should be collected to. |
|
17 |
# Don't put anything in this directory yourself; store your static files |
|
18 |
# in apps' "static/" subdirectories and in STATICFILES_DIRS. |
|
19 |
# Example: "/home/media/media.lawrence.com/static/" |
|
20 |
STATIC_ROOT = os.path.abspath(BASE_DIR + "../static/site/") |
|
21 |
||
22 |
# URL prefix for static files. |
|
23 |
# Example: "http://media.lawrence.com/static/" |
|
24 |
STATIC_URL = BASE_URL + "static/site/" |
|
25 |
||
26 |
# URL prefix for admin static files -- CSS, JavaScript and images. |
|
27 |
# Make sure to use a trailing slash. |
|
28 |
# Examples: "http://foo.com/static/admin/", "/static/admin/". |
|
29 |
ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' |
|
30 |
||
31 |
# Additional locations of static files |
|
32 |
STATICFILES_DIRS = ( |
|
33 |
# Put strings here, like "/home/html/static" or "C:/www/django/static". |
|
34 |
# Always use forward slashes, even on Windows. |
|
35 |
# Don't forget to use absolute paths, not relative paths. |
|
36 |
) |
|
37 |
||
38 |
||
39 |
DATABASES = { |
|
40 |
'default': { |
|
41 |
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
42 |
'NAME': 'hdabo', # Or path to database file if using sqlite3. |
|
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 |
||
|
11
143ab88d17f8
add ordered manytomany fields and indexing
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
50 |
HAYSTACK_SEARCH_ENGINE = 'whoosh' |
|
143ab88d17f8
add ordered manytomany fields and indexing
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
51 |
HAYSTACK_WHOOSH_PATH = os.path.abspath(BASE_DIR + "../index/").rstrip("/")+"/" |
|
143ab88d17f8
add ordered manytomany fields and indexing
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
52 |