|
1 # -*- coding: utf-8 -*- |
|
2 # Django settings for hdalab project. |
|
3 |
|
4 DEBUG = True |
|
5 TEMPLATE_DEBUG = DEBUG |
|
6 |
|
7 ADMINS = ( |
|
8 # ('Your Name', 'your_email@example.com'), |
|
9 ) |
|
10 |
|
11 MANAGERS = ADMINS |
|
12 |
|
13 DATABASES = { |
|
14 'default': { |
|
15 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
16 'NAME': '', # Or path to database file if using sqlite3. |
|
17 'USER': '', # Not used with sqlite3. |
|
18 'PASSWORD': '', # Not used with sqlite3. |
|
19 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
|
20 'PORT': '', # Set to empty string for default. Not used with sqlite3. |
|
21 } |
|
22 } |
|
23 |
|
24 # Local time zone for this installation. Choices can be found here: |
|
25 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|
26 # although not all choices may be available on all operating systems. |
|
27 # On Unix systems, a value of None will cause Django to use the same |
|
28 # timezone as the operating system. |
|
29 # If running in a Windows environment this must be set to the same as your |
|
30 # system time zone. |
|
31 TIME_ZONE = 'America/Chicago' |
|
32 |
|
33 # Language code for this installation. All choices can be found here: |
|
34 # http://www.i18nguy.com/unicode/language-identifiers.html |
|
35 LANGUAGE_CODE = 'en-us' |
|
36 |
|
37 SITE_ID = 1 |
|
38 |
|
39 # If you set this to False, Django will make some optimizations so as not |
|
40 # to load the internationalization machinery. |
|
41 USE_I18N = True |
|
42 |
|
43 # If you set this to False, Django will not format dates, numbers and |
|
44 # calendars according to the current locale |
|
45 USE_L10N = True |
|
46 |
|
47 # Absolute filesystem path to the directory that will hold user-uploaded files. |
|
48 # Example: "/home/media/media.lawrence.com/media/" |
|
49 MEDIA_ROOT = '' |
|
50 |
|
51 # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
52 # trailing slash. |
|
53 # Examples: "http://media.lawrence.com/media/", "http://example.com/media/" |
|
54 MEDIA_URL = '' |
|
55 |
|
56 # Absolute path to the directory static files should be collected to. |
|
57 # Don't put anything in this directory yourself; store your static files |
|
58 # in apps' "static/" subdirectories and in STATICFILES_DIRS. |
|
59 # Example: "/home/media/media.lawrence.com/static/" |
|
60 STATIC_ROOT = '' |
|
61 |
|
62 # URL prefix for static files. |
|
63 # Example: "http://media.lawrence.com/static/" |
|
64 STATIC_URL = '/static/' |
|
65 |
|
66 # URL prefix for admin static files -- CSS, JavaScript and images. |
|
67 # Make sure to use a trailing slash. |
|
68 # Examples: "http://foo.com/static/admin/", "/static/admin/". |
|
69 ADMIN_MEDIA_PREFIX = '/static/admin/' |
|
70 |
|
71 # Additional locations of static files |
|
72 STATICFILES_DIRS = ( |
|
73 # Put strings here, like "/home/html/static" or "C:/www/django/static". |
|
74 # Always use forward slashes, even on Windows. |
|
75 # Don't forget to use absolute paths, not relative paths. |
|
76 ) |
|
77 |
|
78 # List of finder classes that know how to find static files in |
|
79 # various locations. |
|
80 STATICFILES_FINDERS = ( |
|
81 'django.contrib.staticfiles.finders.FileSystemFinder', |
|
82 'django.contrib.staticfiles.finders.AppDirectoriesFinder', |
|
83 # 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
|
84 ) |
|
85 |
|
86 # Make this unique, and don't share it with anybody. |
|
87 SECRET_KEY = 'u!@fo&-)d-hqz7==jmc2*_^__wod8$k^lb7^)y@ihbok)gn4fe' |
|
88 |
|
89 # List of callables that know how to import templates from various sources. |
|
90 TEMPLATE_LOADERS = ( |
|
91 'django.template.loaders.filesystem.Loader', |
|
92 'django.template.loaders.app_directories.Loader', |
|
93 # 'django.template.loaders.eggs.Loader', |
|
94 ) |
|
95 |
|
96 MIDDLEWARE_CLASSES = ( |
|
97 'django.middleware.common.CommonMiddleware', |
|
98 'django.contrib.sessions.middleware.SessionMiddleware', |
|
99 'django.middleware.csrf.CsrfViewMiddleware', |
|
100 'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
101 'django.contrib.messages.middleware.MessageMiddleware', |
|
102 ) |
|
103 |
|
104 ROOT_URLCONF = 'hdalab.urls' |
|
105 |
|
106 TEMPLATE_DIRS = ( |
|
107 # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|
108 # Always use forward slashes, even on Windows. |
|
109 # Don't forget to use absolute paths, not relative paths. |
|
110 ) |
|
111 |
|
112 INSTALLED_APPS = ( |
|
113 'south', |
|
114 'django.contrib.auth', |
|
115 'django.contrib.contenttypes', |
|
116 'django.contrib.sessions', |
|
117 'django.contrib.sites', |
|
118 'django.contrib.messages', |
|
119 'django.contrib.staticfiles', |
|
120 'django.contrib.admin', |
|
121 'django_extensions', |
|
122 'hdabo', |
|
123 'hdalab' |
|
124 ) |
|
125 |
|
126 # A sample logging configuration. The only tangible logging |
|
127 # performed by this configuration is to send an email to |
|
128 # the site admins on every HTTP 500 error. |
|
129 # See http://docs.djangoproject.com/en/dev/topics/logging for |
|
130 # more details on how to customize your logging configuration. |
|
131 #LOGGING = { |
|
132 # 'version': 1, |
|
133 # 'disable_existing_loggers': False, |
|
134 # 'handlers': { |
|
135 # 'mail_admins': { |
|
136 # 'level': 'ERROR', |
|
137 # 'class': 'django.utils.log.AdminEmailHandler' |
|
138 # } |
|
139 # }, |
|
140 # 'loggers': { |
|
141 # 'django.request': { |
|
142 # 'handlers': ['mail_admins'], |
|
143 # 'level': 'ERROR', |
|
144 # 'propagate': True, |
|
145 # }, |
|
146 # } |
|
147 #} |
|
148 |
|
149 HAYSTACK_SITECONF = 'hdabo.search.sites' |
|
150 HAYSTACK_SEARCH_ENGINE = 'hdabo.search.french_whoosh' |
|
151 #HAYSTACK_WHOOSH_PATH = os.path.abspath(BASE_DIR + "../index/").rstrip("/") + "/" |
|
152 |
|
153 WIKIPEDIA_API_URL = "http://fr.wikipedia.org/w/api.php" |
|
154 WIKIPEDIA_VERSION_PERMALINK_TEMPLATE = "http://fr.wikipedia.org/w/index.php?oldid=%s" |
|
155 DBPEDIA_URI_TEMPLATE = "http://dbpedia.org/resource/%s" |
|
156 |
|
157 |
|
158 |
|
159 from hdalab.config import * #@UnusedWildImport |
|
160 |