src/hdalab/settings.py
author ymh <ymh.work@gmail.com>
Mon, 09 Mar 2015 02:15:09 +0100
changeset 494 8382775d1344
parent 493 09aa28e25840
child 545 c752fdee555b
permissions -rw-r--r--
add contact page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    35
LANGUAGE_CODE = 'fr-fr'
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    36
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    37
ugettext = lambda s:s
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    38
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    39
LANGUAGES = (
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    40
  ('fr', ugettext('French')),
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    41
  ('en', ugettext('English')),
185
5722e7730e82 add new translation
ymh <ymh.work@gmail.com>
parents: 145
diff changeset
    42
  ('it', ugettext('Italian')),
5722e7730e82 add new translation
ymh <ymh.work@gmail.com>
parents: 145
diff changeset
    43
  ('de', ugettext('German')),
5722e7730e82 add new translation
ymh <ymh.work@gmail.com>
parents: 145
diff changeset
    44
  ('es', ugettext('Spanish')),
193
0a275198dd0f add japanese
ymh <ymh.work@gmail.com>
parents: 187
diff changeset
    45
  ('ja', ugettext('Japanese')),
187
8b73e382b665 correct translations
ymh <ymh.work@gmail.com>
parents: 185
diff changeset
    46
  #('zh-tw', ugettext('Chinese')),
135
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    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
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
    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 = (
442
3d54acec55d6 first stage for import_rdf
ymh <ymh.work@gmail.com>
parents: 411
diff changeset
   103
    ('django.template.loaders.cached.Loader', (
3d54acec55d6 first stage for import_rdf
ymh <ymh.work@gmail.com>
parents: 411
diff changeset
   104
        'django.template.loaders.filesystem.Loader',
3d54acec55d6 first stage for import_rdf
ymh <ymh.work@gmail.com>
parents: 411
diff changeset
   105
        'django.template.loaders.app_directories.Loader',
3d54acec55d6 first stage for import_rdf
ymh <ymh.work@gmail.com>
parents: 411
diff changeset
   106
    )),
3d54acec55d6 first stage for import_rdf
ymh <ymh.work@gmail.com>
parents: 411
diff changeset
   107
    #     'django.template.loaders.eggs.Loader',
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
)
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
MIDDLEWARE_CLASSES = (
135
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
   111
    'django.contrib.sessions.middleware.SessionMiddleware',
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
   112
    'django.middleware.locale.LocaleMiddleware',
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
    'django.middleware.common.CommonMiddleware',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
    'django.middleware.csrf.CsrfViewMiddleware',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
    'django.contrib.auth.middleware.AuthenticationMiddleware',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
    'django.contrib.messages.middleware.MessageMiddleware',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
)
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
394
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   119
# 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
   120
# 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
   121
# 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
   122
TEMPLATE_CONTEXT_PROCESSORS = (
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   123
    'django.contrib.auth.context_processors.auth',
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   124
    'django.core.context_processors.debug',
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   125
    'django.core.context_processors.i18n',
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   126
    'django.core.context_processors.media',
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   127
    'django.core.context_processors.static',
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   128
    'django.contrib.messages.context_processors.messages',
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   129
    'hdalab.context_processors.version',
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   130
)
4911075b6000 add context_processor and variable VERSION accessible from templates
rougeronj
parents: 335
diff changeset
   131
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   132
ROOT_URLCONF = 'hdalab.urls'
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   133
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   134
TEMPLATE_DIRS = (
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   135
    # 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
   136
    # Always use forward slashes, even on Windows.
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   137
    # Don't forget to use absolute paths, not relative paths.
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   138
)
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
INSTALLED_APPS = (
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   141
    'south',
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents: 331
diff changeset
   142
    '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
   143
    'hdabo',
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   144
    'django.contrib.auth',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   145
    'django.contrib.contenttypes',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   146
    'django.contrib.sessions',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   147
    'django.contrib.sites',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   148
    'django.contrib.messages',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   149
    'django.contrib.staticfiles',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   150
    'django.contrib.admin',
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   151
    'django_extensions',
494
8382775d1344 add contact page
ymh <ymh.work@gmail.com>
parents: 493
diff changeset
   152
    'djcelery_email',
318
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   153
    'registration',
494
8382775d1344 add contact page
ymh <ymh.work@gmail.com>
parents: 493
diff changeset
   154
    'honeypot',
8382775d1344 add contact page
ymh <ymh.work@gmail.com>
parents: 493
diff changeset
   155
    'envelope',
318
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   156
    'haystack',
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   157
    'easy_thumbnails',
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   158
    'renkanmanager',
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   159
)
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   160
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   161
318
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   162
SOUTH_MIGRATION_MODULES = {
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   163
    'easy_thumbnails': 'easy_thumbnails.south_migrations',
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   164
}
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   165
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
   166
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   167
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
   168
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
   169
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
   170
#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
   171
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   172
SEARCH_STAR_CHARACTER = "*"
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   173
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
   174
RENKANS_PER_PAGE = 8
318
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
# 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
   177
AUTH_USER_MODEL = 'hdabo.User'
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   178
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   179
ACCOUNT_ACTIVATION_DAYS = 7
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   180
135
dd6578e36a57 translate interface
ymh <ymh.work@gmail.com>
parents: 114
diff changeset
   181
LOCALE_PATHS = ()
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   182
492
19220d52bce7 add preview calculation
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   183
RENKAN_PREVIEW_DIM = (500,500)
19220d52bce7 add preview calculation
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   184
RENKAN_PREVIEW_WAIT = 5000
19220d52bce7 add preview calculation
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   185
19220d52bce7 add preview calculation
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   186
CELERY_TASK_SERIALIZER = 'json'
19220d52bce7 add preview calculation
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
   187
CELERY_ACCEPT_CONTENT = ['json', 'msgpack', 'yaml']
318
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   188
493
09aa28e25840 send email with celery
ymh <ymh.work@gmail.com>
parents: 492
diff changeset
   189
EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend'
09aa28e25840 send email with celery
ymh <ymh.work@gmail.com>
parents: 492
diff changeset
   190
494
8382775d1344 add contact page
ymh <ymh.work@gmail.com>
parents: 493
diff changeset
   191
HONEYPOT_FIELD_NAME='phone'
8382775d1344 add contact page
ymh <ymh.work@gmail.com>
parents: 493
diff changeset
   192
ENVELOPE_SUBJECT_INTRO='[hdalab contact]'
8382775d1344 add contact page
ymh <ymh.work@gmail.com>
parents: 493
diff changeset
   193
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   194
from hdalab.config import * #@UnusedWildImport
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
   195
318
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   196
if 'LOGIN_REDIRECT_URL' not in locals():
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents: 331
diff changeset
   197
    LOGIN_REDIRECT_URL = BASE_URL
318
25c28dd19898 clean difference between alone hdabo and hdalab depending on hdabo.
cavaliet
parents: 281
diff changeset
   198
if 'LOGIN_URL' not in locals():
327
3684db1579ff folder management from hdalab : first step
cavaliet
parents: 318
diff changeset
   199
    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
   200