web/ldtplatform/settings.py
author cavaliet
Wed, 11 May 2011 16:19:46 +0200
changeset 104 b62a2a3e272d
parent 103 5578dcb54f4d
child 106 2affc8a44dfb
permissions -rw-r--r--
Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder. DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     1
#@PydevCodeAnalysisIgnore
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     2
import os.path
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     3
# Django settings for project.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     4
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     5
DEBUG = True
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     6
TEMPLATE_DEBUG = DEBUG
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     7
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     8
ADMINS = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
     9
    # ('Your Name', 'your_email@domain.com'),
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    10
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    11
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    12
MANAGERS = ADMINS
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    13
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    14
DATABASES = {
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    15
    'default': {
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    16
        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    17
        'NAME': '',                      # Or path to database file if using sqlite3.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    18
        'USER': '',                      # Not used with sqlite3.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    19
        'PASSWORD': '',                  # Not used with sqlite3.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    20
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    21
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    22
    }
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    23
}
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    24
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    25
# Local time zone for this installation. Choices can be found here:
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    26
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    27
# although not all choices may be available on all operating systems.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    28
# If running in a Windows environment this must be set to the same as your
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    29
# system time zone.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    30
TIME_ZONE = 'Europe/Paris'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    31
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    32
# Language code for this installation. All choices can be found here:
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    33
# http://www.i18nguy.com/unicode/language-identifiers.html
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    34
LANGUAGE_CODE = 'fr-fr'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    35
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    36
ugettext = lambda s: s
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    37
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    38
LANGUAGES = ( 
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    39
    ('fr', ugettext('French')),
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    40
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    41
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    42
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    43
SITE_ID = 1
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    44
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    45
# If you set this to False, Django will make some optimizations so as not
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    46
# to load the internationalization machinery.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    47
USE_I18N = True
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    48
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    49
# Absolute path to the directory that holds media.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    50
# Example: "/home/media/media.lawrence.com/"
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    51
MEDIA_ROOT = ''
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    52
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    53
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    54
# trailing slash if there is a path component (optional in other cases).
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    55
# Examples: "http://media.lawrence.com", "http://example.com/media/"
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    56
MEDIA_URL = ''
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    57
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    58
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    59
# trailing slash.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    60
# Examples: "http://foo.com/media/", "/media/".
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    61
ADMIN_MEDIA_PREFIX = '/media/'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    62
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    63
LDT_MEDIA_PREFIX = '/ldt/'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    64
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    65
# Make this unique, and don't share it with anybody.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    66
SECRET_KEY = 't^lii5_z@tho$%6t&b#dm#t9nz$$ylyclxvkdiyqbl+(dnt(ma'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    67
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    68
# List of callables that know how to import templates from various sources.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    69
TEMPLATE_LOADERS = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    70
    'django.template.loaders.filesystem.Loader',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    71
    'django.template.loaders.app_directories.Loader',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    72
#     'django.template.loaders.eggs.Loader',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    73
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    74
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    75
MIDDLEWARE_CLASSES = (
76
a29face9a74b add gzip middleware
ymh <ymh.work@gmail.com>
parents: 73
diff changeset
    76
    'django.middleware.gzip.GZipMiddleware',
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    77
    'django.middleware.common.CommonMiddleware',
71
8a881c9593d0 Add swfupload for local upload to create content view, with progress bar and error management.
cavaliet
parents: 68
diff changeset
    78
    'ldt.ldt_utils.middleware.swfupload.SWFUploadMiddleware',
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    79
    'django.contrib.sessions.middleware.SessionMiddleware',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    80
    'django.middleware.csrf.CsrfViewMiddleware',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    81
    'django.contrib.auth.middleware.AuthenticationMiddleware',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    82
    'django.middleware.locale.LocaleMiddleware',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    83
    'django.contrib.messages.middleware.MessageMiddleware',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    84
    'django_openid_consumer.middleware.OpenIDMiddleware',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    85
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    86
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    87
TEMPLATE_CONTEXT_PROCESSORS = ( 
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    88
    "django.core.context_processors.request",
71
8a881c9593d0 Add swfupload for local upload to create content view, with progress bar and error management.
cavaliet
parents: 68
diff changeset
    89
    "django.contrib.auth.context_processors.auth",
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    90
    "django.core.context_processors.debug",
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    91
    "django.core.context_processors.i18n",
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    92
    "django.core.context_processors.media",
104
b62a2a3e272d Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents: 103
diff changeset
    93
    "django.core.context_processors.static",
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    94
    "ldt.utils.context_processors.ldtcontext",
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    95
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    96
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    97
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    98
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
    99
ROOT_URLCONF = 'ldtplatform.urls'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   100
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   101
TEMPLATE_DIRS = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   102
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   103
    # Always use forward slashes, even on Windows.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   104
    # Don't forget to use absolute paths, not relative paths.
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   105
    os.path.join(os.path.basename(__file__), 'templates'),
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   106
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   107
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   108
FIXTURES_DIRS = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   109
    os.path.join(os.path.basename(__file__), 'fixtures'),
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   110
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   111
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   112
INSTALLED_APPS = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   113
    'django_extensions',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   114
    'django.contrib.auth',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   115
    'django.contrib.contenttypes',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   116
    'django.contrib.sessions',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   117
    'django.contrib.sites',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   118
    'django.contrib.messages',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   119
    'django.contrib.admin',
104
b62a2a3e272d Use django.contrib.staticfiles to manage static file. Reorganize static files in ldt folder.
cavaliet
parents: 103
diff changeset
   120
    'django.contrib.staticfiles',
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   121
    'ldtplatform',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   122
    'registration',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   123
    'tagging',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   124
    'ldt',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   125
    'ldt.core',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   126
    'ldt.ldt_utils',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   127
    'ldt.text',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   128
    'ldt.user',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   129
    'ldt.management',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   130
    'oauth_provider',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   131
    'django_openid_consumer',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   132
    'piston',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   133
    'social_auth',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   134
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   135
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   136
DECOUPAGE_BLACKLIST = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   137
     "de_PPP",
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   138
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   139
 
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   140
ZIP_BLACKLIST = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   141
     "__MACOSX",
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   142
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   143
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   144
AUTHENTICATION_BACKENDS = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   145
    'social_auth.backends.twitter.TwitterBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   146
    'social_auth.backends.facebook.FacebookBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   147
#    'social_auth.backends.google.GoogleOAuthBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   148
#    'social_auth.backends.google.GoogleOAuth2Backend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   149
    'social_auth.backends.google.GoogleBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   150
    'social_auth.backends.yahoo.YahooBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   151
#    'social_auth.backends.contrib.linkedin.LinkedinBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   152
#    'social_auth.backends.contrib.LiveJournalBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   153
#    'social_auth.backends.contrib.orkut.OrkutBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   154
    'social_auth.backends.OpenIDBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   155
    'django.contrib.auth.backends.ModelBackend',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   156
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   157
SOCIAL_AUTH_IMPORT_BACKENDS = (
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   158
    'myproy.social_auth_extra_services',
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   159
)
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   160
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   161
ACCOUNT_ACTIVATION_DAYS = 7 
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   162
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   163
LDT_MAX_SEARCH_NUMBER = 50
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   164
LDT_JSON_DEFAULT_INDENT = 2
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   165
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   166
OAUTH_PROVIDER_KEY_SIZE = 32
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   167
OAUTH_PROVIDER_SECRET_SIZE = 32
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   168
OAUTH_PROVIDER_VERIFIER_SIZE = 10
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   169
OAUTH_PROVIDER_CONSUMER_KEY_SIZE = 256
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   170
OAUTH_AUTHORIZE_VIEW = 'oauth_provider.views.fake_authorize_view'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   171
OAUTH_CALLBACK_VIEW = 'oauth_provider.views.fake_callback_view'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   172
TEST_WEBSERVER_ADDRPORT = "127.0.0.1:8888"
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   173
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   174
TWITTER_CONSUMER_KEY     = 'UxAdbOLSo4Mx3CXIwDG9Eg'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   175
TWITTER_CONSUMER_SECRET  = '2PcWgdjnJL6Vp8srB40jeAo0fjMEtDnUwmAia6EUww'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   176
FACEBOOK_APP_ID = '163134140411313'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   177
FACEBOOK_API_SECRET = 'f25e0754a44f0d90d3f4d9ea961ff012'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   178
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   179
SOCIAL_AUTH_COMPLETE_URL_NAME  = 'complete'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   180
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'associate_complete'
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   181
103
5578dcb54f4d merge context_processors.py and enable upload cancel and remove temp file. Creation of a session temp folder for upload.
cavaliet
parents: 76
diff changeset
   182
AUTO_INDEX_AFTER_SAVE = True
5578dcb54f4d merge context_processors.py and enable upload cancel and remove temp file. Creation of a session temp folder for upload.
cavaliet
parents: 76
diff changeset
   183
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   184
from config import *
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   185
73
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   186
if not "LOGIN_URL" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   187
    LOGIN_URL = BASE_URL + 'ldtplatform/accounts/login/'
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   188
if not "LOGOUT_URL" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   189
    LOGOUT_URL = BASE_URL + 'ldtplatform/accounts/disconnect/'
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   190
if not "LOGIN_REDIRECT_URL" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   191
    LOGIN_REDIRECT_URL = BASE_URL + 'ldtplatform/ldt/'
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   192
if not "LOGOUT_REDIRECT_URL" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   193
    LOGOUT_REDIRECT_URL = BASE_URL + 'ldtplatform/accounts/login'
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   194
if not "PROFILE_REDIRECT_URL" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   195
    PROFILE_REDIRECT_URL = BASE_URL + 'ldtplatform/auth_accounts/create/profile'
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   196
73
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   197
if not "LOGIN_ERROR_URL" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   198
    LOGIN_ERROR_URL = BASE_URL + 'ldtplatform/accounts/login'
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   199
73
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   200
if not "GLOBAL_LOG_LEVEL" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   201
    GLOBAL_LOG_LEVEL = LOG_LEVEL
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   202
if not "GLOBAL_LOG_HANDLERS" in locals():
ba3fa367c3c5 allow overriding all settings
ymh <ymh.work@gmail.com>
parents: 71
diff changeset
   203
    GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}]
68
5278175359e0 update lxml and nyromodal
ymh <ymh.work@gmail.com>
parents: 66
diff changeset
   204