dev/modules/sysconfig/templates/config.py.erb
changeset 138 606972cc4e2f
parent 136 66972b143124
equal deleted inserted replaced
137:02e81a3fc99b 138:606972cc4e2f
    51 LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/'
    51 LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/'
    52 
    52 
    53 
    53 
    54 
    54 
    55 DATABASES = {
    55 DATABASES = {
    56     'default': {
    56   'default': {
    57         'ENGINE': 'django.db.backends.%(db_engine)s', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    57     'ENGINE': 'django.db.backends.postgresql_psycopg2', # YOUR_SETTINGS # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    58         'NAME': '%(db_name)s',                      # Or path to database file if using sqlite3.
    58     'NAME': '<%= @db_name %>',               # YOUR_SETTINGS # Or path to database file if using sqlite3.
    59         'USER': '%(db_user)s',                      # Not used with sqlite3.
    59     'USER': '<%= @db_user %>',               # YOUR_SETTINGS # Not used with sqlite3.
    60         'PASSWORD': '%(db_password)s',                  # Not used with sqlite3.
    60     'PASSWORD': '<%= @db_pw %>',             # YOUR_SETTINGS # Not used with sqlite3.
    61         'HOST': '%(db_host)s',                      # Set to empty string for localhost. Not used with sqlite3.
    61     'HOST': '<%= @db_host %>',                      # YOUR_SETTINGS # Set to empty string for localhost. Not used with sqlite3.
    62         'PORT': '%(db_port)d',                      # Set to empty string for default. Not used with sqlite3.
    62     'PORT': '<%= @db_port %>',                      # YOUR_SETTINGS # Set to empty string for default. Not used with sqlite3.
    63     }
    63    }
    64 }
    64 }
    65 
    65 
    66 CACHES = {
    66 CACHES = {
    67     'default': {
    67     'default': {
    68         'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
    68         'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
    71 
    71 
    72 DEBUG = True
    72 DEBUG = True
    73 TEMPLATE_DEBUG = DEBUG
    73 TEMPLATE_DEBUG = DEBUG
    74 
    74 
    75 #LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../../run/log/log.txt"))
    75 #LOG_FILE = os.path.abspath(os.path.join(BASE_DIR,"../../run/log/log.txt"))
    76 LOG_FILE = '%(log_file)s'
    76 LOG_FILE = 'log.txt'
    77 LOG_LEVEL = logging.DEBUG
    77 LOG_LEVEL = logging.DEBUG
    78 LOGGING = {
    78 LOGGING = {
    79     'version': 1,
    79     'version': 1,
    80     'disable_existing_loggers': False,
    80     'disable_existing_loggers': False,
    81     'filters': {
    81     'filters': {
   139 
   139 
   140 MANAGERS = ADMINS
   140 MANAGERS = ADMINS
   141 
   141 
   142 GOOGLE_ANALYTICS_CODE = '%(google_analytics_code)s'
   142 GOOGLE_ANALYTICS_CODE = '%(google_analytics_code)s'
   143 
   143 
   144 EMAIL_USE_TLS = %(email_use_tls)s
   144 EMAIL_USE_TLS = '%(email_use_tls)s'
   145 EMAIL_HOST = '%(email_host)s'
   145 EMAIL_HOST = '%(email_host)s'
   146 EMAIL_HOST_USER = '%(email_host_user)s'
   146 EMAIL_HOST_USER = '%(email_host_user)s'
   147 EMAIL_HOST_PASSWORD = '%(email_host_user)s'
   147 EMAIL_HOST_PASSWORD = '%(email_host_user)s'
   148 EMAIL_PORT = %(email_port)d 
   148 EMAIL_PORT = '%(email_port)d' 
   149 
   149 
   150 ACCOUNT_ACTIVATION_DAYS = 7
   150 ACCOUNT_ACTIVATION_DAYS = 7
   151 REGISTRATION_OPEN = False
   151 REGISTRATION_OPEN = False
   152 
   152 
   153 LDT_MAX_SEARCH_NUMBER = 50
   153 LDT_MAX_SEARCH_NUMBER = 50
   169 FRONT_TAG_LIST = [u"Enmi 2011", u"film", u"conférence"]
   169 FRONT_TAG_LIST = [u"Enmi 2011", u"film", u"conférence"]
   170 
   170 
   171 HAYSTACK_CONNECTIONS = {
   171 HAYSTACK_CONNECTIONS = {
   172     'default': {
   172     'default': {
   173         #for elasticsearch use ldt.indexation.backends.elasticsearch_backend.ElasticsearchSearchEngine
   173         #for elasticsearch use ldt.indexation.backends.elasticsearch_backend.ElasticsearchSearchEngine
   174         'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
   174         'ENGINE': 'ldt.indexation.backends.elasticsearch_backend.ElasticsearchSearchEngine',
   175         #'URL': 'http://127.0.0.1:9200/',
   175         'URL': 'http://127.0.0.1:9200/',
   176         #'INDEX_NAME': 'spel',
   176         'INDEX_NAME': 'spel',
   177     },
   177     },
   178 }
   178 }
   179 
   179 
   180 LDT_INDEXATION_INSERT_BATCH_SIZE = 5000
   180 LDT_INDEXATION_INSERT_BATCH_SIZE = 5000