| author | rougeronj |
| Thu, 18 Dec 2014 12:01:02 +0100 | |
| changeset 411 | 5e3f4a5f0900 |
| parent 394 | 4911075b6000 |
| child 442 | 3d54acec55d6 |
| 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 |
TEMPLATE_DEBUG = DEBUG |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
ADMINS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
# ('Your Name', 'your_email@example.com'), |
|
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 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
MANAGERS = ADMINS |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
DATABASES = { |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
'default': { |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
'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
|
16 |
'NAME': '', # Or path to database file if using sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
'USER': '', # Not used with sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
'PASSWORD': '', # Not used with sqlite3. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
'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
|
20 |
'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
|
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 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
# 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
|
25 |
# 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
|
26 |
# 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
|
27 |
# 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
|
28 |
# timezone as the operating system. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
29 |
# 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
|
30 |
# system time zone. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
31 |
TIME_ZONE = 'America/Chicago' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
32 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
33 |
# 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
|
34 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
| 135 | 35 |
LANGUAGE_CODE = 'fr-fr' |
36 |
||
37 |
ugettext = lambda s:s |
|
38 |
||
39 |
LANGUAGES = ( |
|
40 |
('fr', ugettext('French')), |
|
41 |
('en', ugettext('English')), |
|
| 185 | 42 |
('it', ugettext('Italian')), |
43 |
('de', ugettext('German')), |
|
44 |
('es', ugettext('Spanish')), |
|
| 193 | 45 |
('ja', ugettext('Japanese')), |
| 187 | 46 |
#('zh-tw', ugettext('Chinese')), |
| 135 | 47 |
) |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
48 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
49 |
SITE_ID = 1 |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
50 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
51 |
# 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
|
52 |
# to load the internationalization machinery. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
53 |
USE_I18N = True |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
54 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
55 |
# 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
|
56 |
# calendars according to the current locale |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
57 |
USE_L10N = True |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
58 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
59 |
# 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
|
60 |
# Example: "/home/media/media.lawrence.com/media/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
61 |
MEDIA_ROOT = '' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
62 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
63 |
# 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
|
64 |
# trailing slash. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
65 |
# Examples: "http://media.lawrence.com/media/", "http://example.com/media/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
66 |
MEDIA_URL = '' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
67 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
68 |
# 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
|
69 |
# 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
|
70 |
# in apps' "static/" subdirectories and in STATICFILES_DIRS. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
71 |
# Example: "/home/media/media.lawrence.com/static/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
72 |
STATIC_ROOT = '' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
73 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
74 |
# URL prefix for static files. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
75 |
# Example: "http://media.lawrence.com/static/" |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
76 |
STATIC_URL = '/static/' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
77 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
78 |
# URL prefix for admin static files -- CSS, JavaScript and images. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
79 |
# Make sure to use a trailing slash. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
80 |
# Examples: "http://foo.com/static/admin/", "/static/admin/". |
| 135 | 81 |
#ADMIN_MEDIA_PREFIX = '/static/admin/' |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
82 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
83 |
# Additional locations of static files |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
84 |
STATICFILES_DIRS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
85 |
# 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
|
86 |
# Always use forward slashes, even on Windows. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
87 |
# Don't forget to use absolute paths, not relative paths. |
|
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 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
90 |
# 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
|
91 |
# various locations. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
92 |
STATICFILES_FINDERS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
93 |
'django.contrib.staticfiles.finders.FileSystemFinder', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
94 |
'django.contrib.staticfiles.finders.AppDirectoriesFinder', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
95 |
# 'django.contrib.staticfiles.finders.DefaultStorageFinder', |
|
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 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
98 |
# Make this unique, and don't share it with anybody. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
99 |
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
|
100 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
101 |
# List of callables that know how to import templates from various sources. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
102 |
TEMPLATE_LOADERS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
103 |
'django.template.loaders.filesystem.Loader', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
104 |
'django.template.loaders.app_directories.Loader', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
105 |
# 'django.template.loaders.eggs.Loader', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
106 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
107 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
108 |
MIDDLEWARE_CLASSES = ( |
| 135 | 109 |
'django.contrib.sessions.middleware.SessionMiddleware', |
110 |
'django.middleware.locale.LocaleMiddleware', |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
111 |
'django.middleware.common.CommonMiddleware', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
112 |
'django.middleware.csrf.CsrfViewMiddleware', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
113 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
114 |
'django.contrib.messages.middleware.MessageMiddleware', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
115 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
116 |
|
|
394
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
117 |
# List of processors used by RequestContext to populate the context. |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
118 |
# Each one should be a callable that takes the request object as its |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
119 |
# only parameter and returns a dictionary to add to the context. |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
120 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
121 |
'django.contrib.auth.context_processors.auth', |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
122 |
'django.core.context_processors.debug', |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
123 |
'django.core.context_processors.i18n', |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
124 |
'django.core.context_processors.media', |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
125 |
'django.core.context_processors.static', |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
126 |
'django.contrib.messages.context_processors.messages', |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
127 |
'hdalab.context_processors.version', |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
128 |
) |
|
4911075b6000
add context_processor and variable VERSION accessible from templates
rougeronj
parents:
335
diff
changeset
|
129 |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
130 |
ROOT_URLCONF = 'hdalab.urls' |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
131 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
132 |
TEMPLATE_DIRS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
133 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
134 |
# Always use forward slashes, even on Windows. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
135 |
# Don't forget to use absolute paths, not relative paths. |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
136 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
137 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
138 |
INSTALLED_APPS = ( |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
139 |
'south', |
| 335 | 140 |
'hdalab', |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
141 |
'django.contrib.auth', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
142 |
'django.contrib.contenttypes', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
143 |
'django.contrib.sessions', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
144 |
'django.contrib.sites', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
145 |
'django.contrib.messages', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
146 |
'django.contrib.staticfiles', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
147 |
'django.contrib.admin', |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
148 |
'django_extensions', |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
149 |
'registration', |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
150 |
'haystack', |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
151 |
'easy_thumbnails', |
| 335 | 152 |
'hdabo', |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
153 |
'renkanmanager', |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
154 |
) |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
155 |
|
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
156 |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
157 |
SOUTH_MIGRATION_MODULES = { |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
158 |
'easy_thumbnails': 'easy_thumbnails.south_migrations', |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
159 |
} |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
160 |
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
|
161 |
|
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
162 |
WIKIPEDIA_API_URL = "http://fr.wikipedia.org/w/api.php" |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
163 |
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
|
164 |
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
|
165 |
#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
|
166 |
|
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
167 |
SEARCH_STAR_CHARACTER = "*" |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
168 |
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
|
169 |
RENKANS_PER_PAGE = 8 |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
170 |
|
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
171 |
# 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
|
172 |
AUTH_USER_MODEL = 'hdabo.User' |
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
173 |
|
|
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
174 |
ACCOUNT_ACTIVATION_DAYS = 7 |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
175 |
|
| 135 | 176 |
LOCALE_PATHS = () |
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
177 |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
178 |
|
|
114
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
179 |
from hdalab.config import * #@UnusedWildImport |
|
c59383cc9940
migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
180 |
|
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
181 |
if 'LOGIN_REDIRECT_URL' not in locals(): |
| 335 | 182 |
LOGIN_REDIRECT_URL = BASE_URL |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
183 |
if 'LOGIN_URL' not in locals(): |
| 327 | 184 |
LOGIN_URL = BASE_URL + "hdalab/hdabo/accounts/login" |
|
318
25c28dd19898
clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents:
281
diff
changeset
|
185 |