author | tc |
Fri, 30 Sep 2011 16:06:04 +0200 | |
changeset 1 | 40d6b5e3dcd7 |
permissions | -rwxr-xr-x |
1
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
1 |
#@PydevCodeAnalysisIgnore |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
2 |
import os.path |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
3 |
#import ldtplatform |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
4 |
VERSION = (0, 3, 0, "final", 0) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
5 |
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
6 |
def get_version(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
7 |
version = '%s.%s' % (VERSION[0], VERSION[1]) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
8 |
if VERSION[2]: |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
9 |
version = '%s.%s' % (version, VERSION[2]) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
10 |
if VERSION[3:] == ('alpha', 0): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
11 |
version = '%s pre-alpha' % version |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
12 |
else: |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
13 |
if VERSION[3] != 'final': |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
14 |
version = '%s %s %s' % (version, VERSION[3], VERSION[4]) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
15 |
return version |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
16 |
__version__ = get_version() |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
17 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
18 |
# Django settings for project. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
19 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
20 |
DEBUG = True |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
21 |
TEMPLATE_DEBUG = DEBUG |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
22 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
23 |
ADMINS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
24 |
# ('Your Name', 'your_email@domain.com'), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
25 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
26 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
27 |
MANAGERS = ADMINS |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
28 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
29 |
DATABASES = { |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
30 |
'default': { |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
31 |
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
32 |
'NAME': '', # Or path to database file if using sqlite3. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
33 |
'USER': '', # Not used with sqlite3. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
34 |
'PASSWORD': '', # Not used with sqlite3. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
35 |
'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
36 |
'PORT': '', # Set to empty string for default. Not used with sqlite3. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
37 |
} |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
38 |
} |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
39 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
40 |
# Local time zone for this installation. Choices can be found here: |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
41 |
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
42 |
# although not all choices may be available on all operating systems. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
43 |
# If running in a Windows environment this must be set to the same as your |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
44 |
# system time zone. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
45 |
TIME_ZONE = 'Europe/Paris' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
46 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
47 |
# Language code for this installation. All choices can be found here: |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
48 |
# http://www.i18nguy.com/unicode/language-identifiers.html |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
49 |
LANGUAGE_CODE = 'fr-fr' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
50 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
51 |
ugettext = lambda s: s |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
52 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
53 |
LANGUAGES = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
54 |
('fr', ugettext('French')), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
55 |
('en', ugettext('English')), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
56 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
57 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
58 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
59 |
SITE_ID = 1 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
60 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
61 |
# If you set this to False, Django will make some optimizations so as not |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
62 |
# to load the internationalization machinery. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
63 |
USE_I18N = True |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
64 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
65 |
# Absolute path to the directory that holds media. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
66 |
# Example: "/home/media/media.lawrence.com/" |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
67 |
#MEDIA_ROOT = '' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
68 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
69 |
# Root of static files used by each app, generated by code or uploaded by users |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
70 |
#STATIC_URL = '/static/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
71 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
72 |
# URL that handles the media served from MEDIA_ROOT. Make sure to use a |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
73 |
# trailing slash if there is a path component (optional in other cases). |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
74 |
# Examples: "http://media.lawrence.com", "http://example.com/media/" |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
75 |
#MEDIA_URL = '' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
76 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
77 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
78 |
# trailing slash. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
79 |
# Examples: "http://foo.com/media/", "/media/". |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
80 |
#ADMIN_MEDIA_PREFIX = '/media/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
81 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
82 |
#LDT_MEDIA_PREFIX = '/ldt/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
83 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
84 |
# Make this unique, and don't share it with anybody. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
85 |
SECRET_KEY = 't^lii5_z@tho$%6t&b#dm#t9nz$$ylyclxvkdiyqbl+(dnt(ma' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
86 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
87 |
# List of callables that know how to import templates from various sources. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
88 |
TEMPLATE_LOADERS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
89 |
'django.template.loaders.filesystem.Loader', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
90 |
'django.template.loaders.app_directories.Loader', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
91 |
# 'django.template.loaders.eggs.Loader', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
92 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
93 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
94 |
MIDDLEWARE_CLASSES = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
95 |
'django.middleware.gzip.GZipMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
96 |
'django.middleware.common.CommonMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
97 |
'ldt.ldt_utils.middleware.swfupload.SWFUploadMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
98 |
'django.contrib.sessions.middleware.SessionMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
99 |
'django.middleware.csrf.CsrfViewMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
100 |
'django.contrib.auth.middleware.AuthenticationMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
101 |
#'django.middleware.locale.LocaleMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
102 |
'django.contrib.messages.middleware.MessageMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
103 |
'django_openid_consumer.middleware.OpenIDMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
104 |
'ldt.ldt_utils.middleware.userprofile.LanguageMiddleware', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
105 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
106 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
107 |
TEMPLATE_CONTEXT_PROCESSORS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
108 |
"django.core.context_processors.request", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
109 |
"django.contrib.auth.context_processors.auth", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
110 |
"django.core.context_processors.debug", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
111 |
"django.core.context_processors.i18n", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
112 |
"django.core.context_processors.media", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
113 |
"django.core.context_processors.static", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
114 |
"ldt.utils.context_processors.ldt_context", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
115 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
116 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
117 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
118 |
#ROOT_URLCONF = 'ldtplatform.urls' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
119 |
ROOT_URLCONF = 'urls' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
120 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
121 |
TEMPLATE_DIRS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
122 |
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
123 |
# Always use forward slashes, even on Windows. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
124 |
# Don't forget to use absolute paths, not relative paths. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
125 |
os.path.join(os.path.basename(__file__), 'templates'), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
126 |
os.path.join(os.path.dirname(__file__), 'templates'), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
127 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
128 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
129 |
FIXTURES_DIRS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
130 |
os.path.join(os.path.basename(__file__), 'fixtures'), |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
131 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
132 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
133 |
INSTALLED_APPS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
134 |
'django_extensions', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
135 |
'django.contrib.auth', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
136 |
'django.contrib.contenttypes', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
137 |
'django.contrib.sessions', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
138 |
'django.contrib.sites', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
139 |
'django.contrib.messages', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
140 |
'django.contrib.admin', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
141 |
'django.contrib.staticfiles', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
142 |
#'ldtplatform', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
143 |
'registration', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
144 |
'tagging', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
145 |
'ldt', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
146 |
'ldt.core', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
147 |
'ldt.ldt_utils', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
148 |
'ldt.text', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
149 |
'ldt.user', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
150 |
'ldt.management', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
151 |
'oauth_provider', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
152 |
'django_openid_consumer', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
153 |
'piston', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
154 |
'social_auth', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
155 |
'south', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
156 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
157 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
158 |
AUTH_PROFILE_MODULE = 'user.UserProfile' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
159 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
160 |
DECOUPAGE_BLACKLIST = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
161 |
"de_PPP", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
162 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
163 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
164 |
ZIP_BLACKLIST = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
165 |
"__MACOSX", |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
166 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
167 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
168 |
AUTHENTICATION_BACKENDS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
169 |
'social_auth.backends.twitter.TwitterBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
170 |
'social_auth.backends.facebook.FacebookBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
171 |
# 'social_auth.backends.google.GoogleOAuthBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
172 |
# 'social_auth.backends.google.GoogleOAuth2Backend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
173 |
'social_auth.backends.google.GoogleBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
174 |
'social_auth.backends.yahoo.YahooBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
175 |
# 'social_auth.backends.contrib.linkedin.LinkedinBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
176 |
# 'social_auth.backends.contrib.LiveJournalBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
177 |
# 'social_auth.backends.contrib.orkut.OrkutBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
178 |
'social_auth.backends.OpenIDBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
179 |
'django.contrib.auth.backends.ModelBackend', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
180 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
181 |
SOCIAL_AUTH_IMPORT_BACKENDS = ( |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
182 |
'myproy.social_auth_extra_services', |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
183 |
) |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
184 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
185 |
ACCOUNT_ACTIVATION_DAYS = 7 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
186 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
187 |
LDT_MAX_SEARCH_NUMBER = 50 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
188 |
LDT_JSON_DEFAULT_INDENT = 2 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
189 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
190 |
OAUTH_PROVIDER_KEY_SIZE = 32 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
191 |
OAUTH_PROVIDER_SECRET_SIZE = 32 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
192 |
OAUTH_PROVIDER_VERIFIER_SIZE = 10 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
193 |
OAUTH_PROVIDER_CONSUMER_KEY_SIZE = 256 |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
194 |
OAUTH_AUTHORIZE_VIEW = 'oauth_provider.views.fake_authorize_view' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
195 |
OAUTH_CALLBACK_VIEW = 'oauth_provider.views.fake_callback_view' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
196 |
TEST_WEBSERVER_ADDRPORT = "127.0.0.1:8888" |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
197 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
198 |
TWITTER_CONSUMER_KEY = 'UxAdbOLSo4Mx3CXIwDG9Eg' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
199 |
TWITTER_CONSUMER_SECRET = '2PcWgdjnJL6Vp8srB40jeAo0fjMEtDnUwmAia6EUww' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
200 |
FACEBOOK_APP_ID = '163134140411313' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
201 |
FACEBOOK_API_SECRET = 'f25e0754a44f0d90d3f4d9ea961ff012' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
202 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
203 |
SOCIAL_AUTH_COMPLETE_URL_NAME = 'complete' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
204 |
SOCIAL_AUTH_ASSOCIATE_URL_NAME = 'associate_complete' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
205 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
206 |
# twitter testing |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
207 |
TEST_TWITTER_USER = 'jacquesverrier@gmail.com' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
208 |
TEST_TWITTER_PASSWORD = '' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
209 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
210 |
# facebook testing |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
211 |
#TEST_FACEBOOK_USER = 'testing_account' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
212 |
#TEST_FACEBOOK_PASSWORD = 'password_for_testing_account' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
213 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
214 |
# google testing |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
215 |
TEST_GOOGLE_USER = 'jacquesverrier@gmail.com' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
216 |
TEST_GOOGLE_PASSWORD = '' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
217 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
218 |
AUTO_INDEX_AFTER_SAVE = True |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
219 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
220 |
#WEB_VERSION = ldtplatform.get_version() |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
221 |
WEB_VERSION = get_version() |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
222 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
223 |
from config import * |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
224 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
225 |
if not "LOGIN_URL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
226 |
LOGIN_URL = BASE_URL + 'accounts/login/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
227 |
if not "LOGOUT_URL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
228 |
LOGOUT_URL = BASE_URL + 'accounts/disconnect/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
229 |
if not "LOGIN_REDIRECT_URL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
230 |
LOGIN_REDIRECT_URL = BASE_URL + 'ldt/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
231 |
if not "LOGOUT_REDIRECT_URL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
232 |
LOGOUT_REDIRECT_URL = BASE_URL + 'accounts/login' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
233 |
if not "PROFILE_REDIRECT_URL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
234 |
PROFILE_REDIRECT_URL = BASE_URL + 'auth_accounts/create/profile' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
235 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
236 |
if not "LOGIN_ERROR_URL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
237 |
LOGIN_ERROR_URL = BASE_URL + 'accounts/login' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
238 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
239 |
if not "GLOBAL_LOG_LEVEL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
240 |
GLOBAL_LOG_LEVEL = LOG_LEVEL |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
241 |
if not "GLOBAL_LOG_HANDLERS" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
242 |
GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}] |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
243 |
|
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
244 |
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
245 |
# trailing slash. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
246 |
# Examples: "http://foo.com/media/", "/media/". |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
247 |
if not "ADMIN_MEDIA_PREFIX" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
248 |
ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
249 |
# Used in a lot of templates |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
250 |
if not "LDT_MEDIA_PREFIX" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
251 |
LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
252 |
# URL that handles the media served from MEDIA_ROOT. |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
253 |
if not "MEDIA_URL" in locals(): |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
254 |
MEDIA_URL = BASE_URL + 'static/media/' |
40d6b5e3dcd7
First Regards Signés Commit. Caution : ldt is not installed in the virtualenv, we have to copy the ldt folder to the site-packages. Otherwise, it works perfectly.
tc
parents:
diff
changeset
|
255 |