|
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 |