| author | ymh <ymh.work@gmail.com> |
| Fri, 13 Apr 2018 12:43:08 +0200 | |
| branch | documentation |
| changeset 696 | 06825f3aa213 |
| parent 686 | 385e3a12ee27 |
| permissions | -rw-r--r-- |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
# -*- coding: utf-8 -*- |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
# Django settings for hdalab project. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
DEBUG = True |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
ADMINS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
# ('Your Name', 'your_email@example.com'), |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
MANAGERS = ADMINS |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
DATABASES = { |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
'default': { |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
'NAME': '', # Or path to database file if using sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
'USER': '', # Not used with sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
'PASSWORD': '', # Not used with sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
'PORT': '', # Set to empty string for default. Not used with sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
} |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
} |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
# Local time zone for this installation. Choices can be found here: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
25 |
# although not all choices may be available on all operating systems. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
26 |
# On Unix systems, a value of None will cause Django to use the same |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
27 |
# timezone as the operating system. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
28 |
# If running in a Windows environment this must be set to the same as your |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
29 |
# system time zone. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
30 |
TIME_ZONE = 'America/Chicago' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
31 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
32 |
# Language code for this installation. All choices can be found here: |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
33 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
| 135 | 34 |
LANGUAGE_CODE = 'fr-fr' |
35 |
||
36 |
ugettext = lambda s:s |
|
37 |
||
38 |
LANGUAGES = ( |
|
39 |
('fr', ugettext('French')), |
|
40 |
('en', ugettext('English')), |
|
| 185 | 41 |
('it', ugettext('Italian')), |
42 |
('de', ugettext('German')), |
|
43 |
('es', ugettext('Spanish')), |
|
| 193 | 44 |
('ja', ugettext('Japanese')), |
| 187 | 45 |
#('zh-tw', ugettext('Chinese')), |
| 135 | 46 |
) |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
47 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
48 |
SITE_ID = 1 |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
49 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
50 |
# If you set this to False, Django will make some optimizations so as not |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
51 |
# to load the internationalization machinery. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
52 |
USE_I18N = True |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
53 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
54 |
# If you set this to False, Django will not format dates, numbers and |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
55 |
# calendars according to the current locale |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
56 |
USE_L10N = True |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
57 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
58 |
# Absolute filesystem path to the directory that will hold user-uploaded files. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
59 |
# Example: "/home/media/media.lawrence.com/media/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
60 |
MEDIA_ROOT = '' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
61 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
62 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
63 |
# trailing slash. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
64 |
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
65 |
MEDIA_URL = '' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
66 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
67 |
# Absolute path to the directory static files should be collected to. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
68 |
# Don't put anything in this directory yourself; store your static files |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
69 |
# in apps' "static/" subdirectories and in STATICFILES_DIRS. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
70 |
# Example: "/home/media/media.lawrence.com/static/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
71 |
STATIC_ROOT = '' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
72 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
73 |
# URL prefix for static files. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
74 |
# Example: "http://media.lawrence.com/static/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
75 |
STATIC_URL = '/static/' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
76 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
77 |
# URL prefix for admin static files -- CSS, JavaScript and images. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
78 |
# Make sure to use a trailing slash. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
79 |
# Examples: "http://foo.com/static/admin/", "/static/admin/". |
| 135 | 80 |
#ADMIN_MEDIA_PREFIX = '/static/admin/' |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
81 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
82 |
# Additional locations of static files |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
83 |
STATICFILES_DIRS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
84 |
# Put strings here, like "/home/html/static" or "C:/www/django/static". |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
85 |
# Always use forward slashes, even on Windows. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
86 |
# Don't forget to use absolute paths, not relative paths. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
87 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
88 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
89 |
# List of finder classes that know how to find static files in |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
90 |
# various locations. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
91 |
STATICFILES_FINDERS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
92 |
'django.contrib.staticfiles.finders.FileSystemFinder', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
93 |
'django.contrib.staticfiles.finders.AppDirectoriesFinder', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
94 |
# 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
95 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
96 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
97 |
# Make this unique, and don't share it with anybody. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
98 |
SECRET_KEY = 'u!@fo&-)d-hqz7==jmc2*_^__wod8$k^lb7^)y@ihbok)gn4fe' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
99 |
|
| 613 | 100 |
|
101 |
#template settings |
|
102 |
TEMPLATES = [ |
|
103 |
{ |
|
104 |
'BACKEND': 'django.template.backends.django.DjangoTemplates', |
|
105 |
'DIRS': [ |
|
106 |
], |
|
107 |
'OPTIONS': { |
|
108 |
'context_processors': [ |
|
109 |
'django.contrib.auth.context_processors.auth', |
|
110 |
'django.template.context_processors.debug', |
|
111 |
'django.template.context_processors.i18n', |
|
112 |
'django.template.context_processors.media', |
|
113 |
'django.template.context_processors.static', |
|
114 |
'django.template.context_processors.tz', |
|
115 |
'django.contrib.messages.context_processors.messages', |
|
116 |
'hdalab.context_processors.version', |
|
117 |
], |
|
118 |
'loaders': [ |
|
119 |
('django.template.loaders.cached.Loader', ( |
|
120 |
'django.template.loaders.filesystem.Loader', |
|
121 |
'django.template.loaders.app_directories.Loader', |
|
122 |
)), |
|
123 |
], |
|
124 |
'debug': DEBUG, |
|
125 |
}, |
|
126 |
}, |
|
127 |
] |
|
128 |
||
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
129 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
130 |
MIDDLEWARE_CLASSES = ( |
| 135 | 131 |
'django.contrib.sessions.middleware.SessionMiddleware', |
132 |
'django.middleware.locale.LocaleMiddleware', |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
133 |
'django.middleware.common.CommonMiddleware', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
134 |
'django.middleware.csrf.CsrfViewMiddleware', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
135 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
136 |
'django.contrib.messages.middleware.MessageMiddleware', |
|
614
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
137 |
'django.middleware.security.SecurityMiddleware', |
|
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
138 |
'django.middleware.clickjacking.XFrameOptionsMiddleware' |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
139 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
140 |
|
|
394
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
141 |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
142 |
ROOT_URLCONF = 'hdalab.urls' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
143 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
144 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
145 |
INSTALLED_APPS = ( |
| 335 | 146 |
'hdalab', |
|
458
604b887e70c3
add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents:
442
diff
changeset
|
147 |
'hdabo', |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
148 |
'django.contrib.auth', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
149 |
'django.contrib.contenttypes', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
150 |
'django.contrib.sessions', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
151 |
'django.contrib.sites', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
152 |
'django.contrib.messages', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
153 |
'django.contrib.staticfiles', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
154 |
'django.contrib.admin', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
155 |
'django_extensions', |
| 494 | 156 |
'djcelery_email', |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
157 |
'registration', |
| 494 | 158 |
'honeypot', |
159 |
'envelope', |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
160 |
'haystack', |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
161 |
'easy_thumbnails', |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
162 |
'renkanmanager', |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
163 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
164 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
165 |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
166 |
SOUTH_MIGRATION_MODULES = { |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
167 |
'easy_thumbnails': 'easy_thumbnails.south_migrations', |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
168 |
} |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
169 |
DEFAULT_RENKAN_ICON = "thumbnails/renkan/renkan_default_icon.png" |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
170 |
|
|
683
59d49ab04ded
use https for wikipedia api endpoint
ymh <ymh.work@gmail.com>
parents:
676
diff
changeset
|
171 |
WIKIPEDIA_API_URL = "https://fr.wikipedia.org/w/api.php" |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
172 |
WIKIPEDIA_VERSION_PERMALINK_TEMPLATE = "http://fr.wikipedia.org/w/index.php?oldid=%s" |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
173 |
DBPEDIA_URI_TEMPLATE = "http://fr.dbpedia.org/%s/%s" |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
174 |
#DBPEDIA_URI_TEMPLATE = "http://fr.dbpedia.org/resource/%s" |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
175 |
|
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
176 |
SEARCH_STAR_CHARACTER = "*" |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
177 |
PAGINATION_DEFAULT_NB_BY_PAGE = 50 |
|
411
5e3f4a5f0900
Update ref to renkan.js + raise RENKANS_PER_PAGE from 3 to 8
rougeronj
parents:
394
diff
changeset
|
178 |
RENKANS_PER_PAGE = 8 |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
179 |
|
| 545 | 180 |
TEST_RUNNER = 'django.test.runner.DiscoverRunner' |
181 |
||
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
182 |
# User class after migration to django > 1.6.5 |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
183 |
AUTH_USER_MODEL = 'hdabo.User' |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
184 |
|
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
185 |
ACCOUNT_ACTIVATION_DAYS = 7 |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
186 |
|
| 135 | 187 |
LOCALE_PATHS = () |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
188 |
|
| 492 | 189 |
RENKAN_PREVIEW_DIM = (500,500) |
190 |
RENKAN_PREVIEW_WAIT = 5000 |
|
191 |
||
192 |
CELERY_TASK_SERIALIZER = 'json' |
|
193 |
CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml'] |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
194 |
|
| 493 | 195 |
EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend' |
196 |
||
| 494 | 197 |
HONEYPOT_FIELD_NAME='phone' |
198 |
ENVELOPE_SUBJECT_INTRO='[hdalab contact]' |
|
199 |
||
|
614
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
200 |
X_FRAME_OPTIONS='DENY' |
|
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
201 |
SESSION_COOKIE_SECURE=False |
|
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
202 |
SECURE_CONTENT_TYPE_NOSNIFF=True |
|
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
203 |
SECURE_BROWSER_XSS_FILTER=True |
|
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
204 |
CSRF_COOKIE_SECURE=False |
|
40e125004a0b
integrate last changes from mcc + finish 1.8 mig + remove some warning
ymh <ymh.work@gmail.com>
parents:
613
diff
changeset
|
205 |
|
|
620
f45d7494332e
upgrade renkan, correct tagcloud, migrate to lodash
ymh <ymh.work@gmail.com>
parents:
618
diff
changeset
|
206 |
#SILENCED_SYSTEM_CHECKS = ['fields.W342'] # to silence a problem in registration module |
|
660
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
620
diff
changeset
|
207 |
REGISTRATION_FORM = 'hdabo.forms.HdaboRegistrationForm' |
|
04255afd160e
display errors in registration form. Add check for email unicity. slightly change registration message, upgrade django-registration-redux
ymh <ymh.work@gmail.com>
parents:
620
diff
changeset
|
208 |
REGISTRATION_EMAIL_HTML = False |
| 618 | 209 |
|
|
676
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
210 |
OLDER_WINDOWS = [ |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
211 |
u'Windows', u'Windows Mobile', u'Windows XP', |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
212 |
u'Windows ME', u'Windows 2000', u'Windows NT 4.0', |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
213 |
u'Windows CE', u'Windows 95', u'Windows 98', |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
214 |
u'Windows 3.1', u'Windows NT' |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
215 |
] |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
216 |
|
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
217 |
|
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
218 |
RENKAN_TUTORIAL_VIDEO_URLS = [ |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
219 |
# {'format': 'video/mp4', 'url': '' } |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
220 |
] |
|
111906d4c8b0
correct video embed and new renkan version
ymh <ymh.work@gmail.com>
parents:
660
diff
changeset
|
221 |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
222 |
from hdalab.config import * #@UnusedWildImport |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
223 |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
224 |
if 'LOGIN_REDIRECT_URL' not in locals(): |
| 335 | 225 |
LOGIN_REDIRECT_URL = BASE_URL |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
226 |
if 'LOGIN_URL' not in locals(): |
| 327 | 227 |
LOGIN_URL = BASE_URL + "hdalab/hdabo/accounts/login" |
|
686
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
683
diff
changeset
|
228 |
|
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
683
diff
changeset
|
229 |
if 'FRONT_WEB_URL' not in locals(): |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
683
diff
changeset
|
230 |
FRONT_WEB_URL = WEB_URL #defined for preview calculation when internal url may be different than external url |