web/ldtplatform/config.py.tmpl
changeset 3 03918bc7b9f1
parent 2 93d48df946cb
child 29 d283ffaa7791
equal deleted inserted replaced
2:93d48df946cb 3:03918bc7b9f1
     1 import os, logging
     1 import os, logging
     2 
     2 
     3 SITE_ID = 1
     3 SITE_ID = 1
     4 
     4 
     5 BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
     5 BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
     6 BASE_URL = '/~ymh/franceculture/'
     6 BASE_URL = '/~ymh/platform/'
     7 WEB_URL = 'http://localhost/'
     7 WEB_URL = 'http://localhost/'
     8 MEDIA_BASE_URL = BASE_URL + 'static/'
     8 MEDIA_BASE_URL = BASE_URL + 'static/'
     9 STREAM_URL = MEDIA_BASE_URL + "/content/"
     9 STREAM_URL = MEDIA_BASE_URL + "/content/"
    10 
    10 
    11 STREAM_SRC_PREFIX = ""
    11 STREAM_SRC_PREFIX = ""
    33 LDT_MEDIA_PREFIX = MEDIA_URL + 'ldt/'
    33 LDT_MEDIA_PREFIX = MEDIA_URL + 'ldt/'
    34 
    34 
    35 DATABASES = {
    35 DATABASES = {
    36     'default': {
    36     'default': {
    37         'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    37         'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    38         'NAME': 'franceculture',                      # Or path to database file if using sqlite3.
    38         'NAME': 'platform',                      # Or path to database file if using sqlite3.
    39         'USER': 'iri',                      # Not used with sqlite3.
    39         'USER': 'iri',                      # Not used with sqlite3.
    40         'PASSWORD': 'iri',                  # Not used with sqlite3.
    40         'PASSWORD': 'iri',                  # Not used with sqlite3.
    41         'HOST': 'localhost',                      # Set to empty string for localhost. Not used with sqlite3.
    41         'HOST': 'localhost',                      # Set to empty string for localhost. Not used with sqlite3.
    42         'PORT': '5432',                      # Set to empty string for default. Not used with sqlite3.
    42         'PORT': '5432',                      # Set to empty string for default. Not used with sqlite3.
    43     }
    43     }