src/ldtplatform/settings.py
author cavaliet
Thu, 17 Oct 2013 12:33:17 +0200
changeset 128 6ffc59b2f7a0
parent 110 7da60a0dd2bb
child 159 662f8f9676f6
permissions -rw-r--r--
update requirements and version number to 2.11.2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
#@PydevCodeAnalysisIgnore
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
import os.path
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
import ldtplatform
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
# Django settings for project.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
DEBUG = True
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
TEMPLATE_DEBUG = DEBUG
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
ADMINS = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    # ('Your Name', 'your_email@domain.com'),
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
MANAGERS = ADMINS
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
DATABASES = {
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    'default': {
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
        'NAME': '',                      # Or path to database file if using sqlite3.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
        'USER': '',                      # Not used with sqlite3.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
        'PASSWORD': '',                  # Not used with sqlite3.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
    }
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
}
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
# Local time zone for this installation. Choices can be found here:
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
# although not all choices may be available on all operating systems.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
# If running in a Windows environment this must be set to the same as your
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
# system time zone.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
TIME_ZONE = 'UTC'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
# Language code for this installation. All choices can be found here:
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    35
# http://www.i18nguy.com/unicode/language-identifiers.html
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
LANGUAGE_CODE = 'fr-fr'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
ugettext = lambda s: s
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
LANGUAGES = ( 
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
    ('fr', ugettext('French')),
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
    ('en', ugettext('English')),
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
    ('ja', ugettext('Japanese')),
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
SITE_ID = 1
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
# If you set this to False, Django will make some optimizations so as not
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
# to load the internationalization machinery.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
USE_I18N = True
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
# Absolute path to the directory that holds media.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
# Example: "/home/media/media.lawrence.com/"
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
#MEDIA_ROOT = ''
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
# Root of static files used by each app, generated by code or uploaded by users
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
#STATIC_URL = '/static/'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
# trailing slash if there is a path component (optional in other cases).
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
# Examples: "http://media.lawrence.com", "http://example.com/media/"
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
#MEDIA_URL = ''
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
# trailing slash.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
# Examples: "http://foo.com/media/", "/media/".
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
#LDT_MEDIA_PREFIX = '/ldt/'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
# Make this unique, and don't share it with anybody.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
SECRET_KEY = 't^lii5_z@tho$%6t&b#dm#t9nz$$ylyclxvkdiyqbl+(dnt(ma'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
# List of callables that know how to import templates from various sources.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    75
TEMPLATE_LOADERS = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    76
    'django.template.loaders.filesystem.Loader',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
    'django.template.loaders.app_directories.Loader',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
#     'django.template.loaders.eggs.Loader',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
MIDDLEWARE_CLASSES = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
    'django.middleware.cache.UpdateCacheMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    83
    'django.middleware.common.CommonMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    84
    'django.middleware.cache.FetchFromCacheMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
    'django.middleware.gzip.GZipMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
    'ldt.ldt_utils.middleware.swfupload.SWFUploadMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
    'django.contrib.sessions.middleware.SessionMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
    'django.middleware.csrf.CsrfViewMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
    'django.contrib.auth.middleware.AuthenticationMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
    #'django.middleware.locale.LocaleMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    91
    'django.contrib.messages.middleware.MessageMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    92
    'django_openid_consumer.middleware.OpenIDMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    93
    'ldt.ldt_utils.middleware.userprofile.LanguageMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    94
    'ldt.security.middleware.SecurityMiddleware',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    95
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    96
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    97
TEMPLATE_CONTEXT_PROCESSORS = ( 
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    98
    "django.core.context_processors.request",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
    99
    "django.contrib.auth.context_processors.auth",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   100
    "django.core.context_processors.debug",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   101
    "django.core.context_processors.i18n",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   102
    "django.core.context_processors.media",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   103
    "django.core.context_processors.static",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   104
    "ldt.utils.context_processors.ldt_context",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   105
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   106
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   107
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   108
ROOT_URLCONF = 'ldtplatform.urls'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   109
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   110
TEMPLATE_DIRS = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   111
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   112
    # Always use forward slashes, even on Windows.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   113
    # Don't forget to use absolute paths, not relative paths.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   114
    os.path.join(os.path.basename(__file__), 'templates'), 
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   115
    os.path.join(os.path.dirname(__file__), 'templates'),  
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   116
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   117
    
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   118
FIXTURES_DIRS = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   119
    os.path.join(os.path.basename(__file__), 'fixtures'),
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   120
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   121
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   122
INSTALLED_APPS = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   123
    'django_extensions',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   124
    'django.contrib.auth',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   125
    'django.contrib.contenttypes',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   126
    'django.contrib.sessions',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   127
    'django.contrib.sites',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   128
    'django.contrib.messages',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   129
    'django.contrib.admin',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   130
    'django.contrib.staticfiles',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   131
    'haystack',
102
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   132
    'tastypie',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   133
    'guardian',
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   134
    'tagging',
102
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   135
    'registration',
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   136
    'oauth_provider',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   137
    'django_openid_consumer',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   138
    'social_auth',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   139
    'south',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   140
    'sorl.thumbnail',
102
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   141
    'ldt',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   142
    'ldt.core',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   143
    'ldt.security',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   144
    'ldt.user',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   145
    'ldt.ldt_utils',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   146
    'ldt.text',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   147
    'ldt.management',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   148
    'ldt.indexation',
103
bcb4f7c71799 - Reactivate hashcut
ymh <ymh.work@gmail.com>
parents: 102
diff changeset
   149
    'hashcut',
58
80317ff7192b add chunked_uplaods to installed_app
rougeronj
parents: 21
diff changeset
   150
    'chunked_uploads',
102
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   151
    'ldtplatform',
110
7da60a0dd2bb update requirements (ldt, hashcut and metadatacomposer) and version number to 2.10
cavaliet
parents: 109
diff changeset
   152
    'metadatacomposer',
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   153
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   154
102
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   155
#AUTH_PROFILE_MODULE = 'user.UserProfile'
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   156
AUTH_USER_MODEL = 'user.LdtUser'
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   157
INITIAL_CUSTOM_USER_MIGRATION = "0009_rename_auth_user_to_user_ldt_user"
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   158
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   159
DECOUPAGE_BLACKLIST = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   160
     "de_PPP",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   161
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   162
 
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   163
ZIP_BLACKLIST = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   164
     "__MACOSX",
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   165
)
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   166
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   167
AUTHENTICATION_BACKENDS = (
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   168
    'social_auth.backends.twitter.TwitterBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   169
    'social_auth.backends.facebook.FacebookBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   170
#    'social_auth.backends.google.GoogleOAuthBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   171
#    'social_auth.backends.google.GoogleOAuth2Backend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   172
    'social_auth.backends.google.GoogleBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   173
    'social_auth.backends.yahoo.YahooBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   174
#    'social_auth.backends.contrib.linkedin.LinkedinBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   175
#    'social_auth.backends.contrib.LiveJournalBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   176
#    'social_auth.backends.contrib.orkut.OrkutBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   177
    'social_auth.backends.OpenIDBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   178
    'django.contrib.auth.backends.ModelBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   179
    'guardian.backends.ObjectPermissionBackend',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   180
)
102
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   181
#SOCIAL_AUTH_IMPORT_BACKENDS = (
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   182
#    'myproy.social_auth_extra_services',
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   183
#)
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   184
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   185
ACCOUNT_ACTIVATION_DAYS = 7 
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   186
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   187
LDT_MAX_SEARCH_NUMBER = 50
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   188
LDT_JSON_DEFAULT_INDENT = 0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   189
LDT_MAX_FRAGMENT_PER_SEARCH = 3
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   190
LDT_RESULTS_PER_PAGE = 10
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   191
LDT_MAX_CONTENTS_PER_PAGE = 10
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   192
LDT_MAX_PROJECTS_PER_PAGE = 10
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   193
LDT_FRONT_MEDIA_PER_PAGE = 9
81
8a667bb50299 add migration and update version number and requirements
cavaliet
parents: 21
diff changeset
   194
LDT_FRONT_PROJECTS_PER_PAGE = 12
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   195
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   196
OAUTH_PROVIDER_KEY_SIZE = 32
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   197
OAUTH_PROVIDER_SECRET_SIZE = 32
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   198
OAUTH_PROVIDER_VERIFIER_SIZE = 10
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   199
OAUTH_PROVIDER_CONSUMER_KEY_SIZE = 256
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   200
OAUTH_AUTHORIZE_VIEW = 'oauth_provider.views.fake_authorize_view'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   201
OAUTH_CALLBACK_VIEW = 'oauth_provider.views.fake_callback_view'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   202
TEST_WEBSERVER_ADDRPORT = "127.0.0.1:8888"
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   203
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   204
TWITTER_CONSUMER_KEY     = 'UxAdbOLSo4Mx3CXIwDG9Eg'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   205
TWITTER_CONSUMER_SECRET  = '2PcWgdjnJL6Vp8srB40jeAo0fjMEtDnUwmAia6EUww'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   206
FACEBOOK_APP_ID = '163134140411313'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   207
FACEBOOK_API_SECRET = 'f25e0754a44f0d90d3f4d9ea961ff012'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   208
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   209
SOCIAL_AUTH_COMPLETE_URL_NAME  = 'complete'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   210
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'associate_complete'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   211
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   212
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   213
AUTO_INDEX_AFTER_SAVE = True
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   214
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   215
ANONYMOUS_USER_ID = -1
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   216
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   217
WEB_VERSION = ldtplatform.get_version()
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   218
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   219
DIVISIONS_FOR_STAT_ANNOTATION = 64
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   220
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   221
FRONT_TAG_LIST = []
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   222
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   223
DEFAULT_CONTENT_ICON = "thumbnails/contents/content_default_icon.png"
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   224
DEFAULT_PROJECT_ICON = "thumbnails/projects/project_default_icon.png"
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   225
DEFAULT_USER_ICON = "thumbnails/users/user_default_icon.png"
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   226
DEFAULT_GROUP_ICON = "thumbnails/groups/group_default_icon.png"
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   227
PROFILE_IMG_MAX_SIZE = 1000000
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   228
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   229
USE_GROUP_PERMISSIONS = ['Project', 'Content', 'Media']
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   230
FORBIDDEN_STREAM_URL = "rtmp://media.iri.centrepompidou.fr/ddc_player/mp4:video/forbidden_stream.mp4?old_path="
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   231
PUBLIC_GROUP_NAME = 'everyone'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   232
MAX_USERS_SEARCH = 20
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   233
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   234
SYNTAX = {
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   235
          '++' : 'OK',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   236
          '--' : 'KO',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   237
          '==' : 'REF',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   238
          '??' : 'Q'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   239
          }
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   240
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   241
EXTERNAL_STREAM_SRC = ['youtube.com', 'dailymotion.com', 'vimeo.com']
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   242
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   243
HAYSTACK_CONNECTIONS = {
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   244
    'default': {
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   245
        'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   246
    },
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   247
}
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   248
HAYSTACK_SIGNAL_PROCESSOR = 'ldt.indexation.signals.LdtSignalProcessor'
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   249
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   250
from config import *
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   251
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   252
if not "SRC_BASE_URL" in locals():
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   253
    SRC_BASE_URL = BASE_URL + __name__.split('.')[0] + '/' 
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   254
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   255
if not "LOGIN_URL" in locals():
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   256
    LOGIN_URL = SRC_BASE_URL + 'accounts/login/'
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   257
if not "LOGOUT_URL" in locals():
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   258
    LOGOUT_URL = SRC_BASE_URL + 'accounts/disconnect/'
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   259
if not "LOGIN_REDIRECT_URL" in locals():
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   260
    LOGIN_REDIRECT_URL = SRC_BASE_URL + 'ldt/'
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   261
if not "LOGOUT_REDIRECT_URL" in locals():
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   262
    LOGOUT_REDIRECT_URL = SRC_BASE_URL + 'accounts/login'
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   263
if not "PROFILE_REDIRECT_URL" in locals():
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   264
    PROFILE_REDIRECT_URL = SRC_BASE_URL + 'auth_accounts/create/profile'
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   265
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   266
if not "LOGIN_ERROR_URL" in locals():
59
4671c9fd69b5 - update virtualenv
ymh <ymh.work@gmail.com>
parents: 58
diff changeset
   267
    LOGIN_ERROR_URL = SRC_BASE_URL + 'accounts/login'
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   268
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   269
# Used in a lot of templates
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   270
if not "LDT_MEDIA_PREFIX" in locals():
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   271
    LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   272
# URL that handles the media served from MEDIA_ROOT.
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   273
if not "MEDIA_URL" in locals():
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   274
    MEDIA_URL = BASE_URL + 'static/media/'
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   275
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   276
#forced settings    
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   277
MAX_TAG_LENGTH = 255
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   278
FORCE_LOWERCASE_TAGS = True
102
e2968797bdae upgrade to django 1.5
ymh <ymh.work@gmail.com>
parents: 91
diff changeset
   279
0
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   280
    
87104b7cb3d6 first version of file organization
ymh <ymh.work@gmail.com>
parents:
diff changeset
   281