web/ldtplatform/config.py.tmpl
changeset 106 2affc8a44dfb
parent 104 b62a2a3e272d
child 109 b823ac24bc88
equal deleted inserted replaced
105:6094ab306d77 106:2affc8a44dfb
     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/platform/'
     6 BASE_URL = '/~ymh/platform/'
     7 WEB_URL = 'http://localhost/'
     7 WEB_URL = 'http://localhost/'
     8 STATIC_URL = BASE_URL + 'static/'
     8 STATIC_URL = BASE_URL + 'static/site/'
     9 STREAM_URL = MEDIA_BASE_URL + "/content/"
     9 
       
    10 
       
    11 STREAM_URL = "rtmp://localhost/vod/media/"
    10 
    12 
    11 STREAM_SRC_PREFIX = ""
    13 STREAM_SRC_PREFIX = ""
    12  
    14  
    13 
    15 
    14 # Absolute path to the directory that holds media.
    16 # Absolute path to the directory that holds media.
    19 # Absolute path to the directory that static files (js, css, swf...)
    21 # Absolute path to the directory that static files (js, css, swf...)
    20 # DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder
    22 # DO NOT forget to do command line ./manage.py collectstatic to gather static media into the web/static folder
    21 STATIC_ROOT = "C:/user/myfolder/my_platform/platform/web/static"
    23 STATIC_ROOT = "C:/user/myfolder/my_platform/platform/web/static"
    22 
    24 
    23 
    25 
    24 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
       
    25 # trailing slash if there is a path component (optional in other cases).
       
    26 # Examples: "http://media.lawrence.com", "http://example.com/media/"
       
    27 MEDIA_URL = STATIC_URL
       
    28 
       
    29 CONTENT_ROOT = MEDIA_ROOT + "media/content/"
    26 CONTENT_ROOT = MEDIA_ROOT + "media/content/"
    30 
    27 
       
    28 # PATH where uploaded media are put.
    31 STREAM_PATH = CONTENT_ROOT
    29 STREAM_PATH = CONTENT_ROOT
    32 
    30 
    33 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
       
    34 # trailing slash.
       
    35 # Examples: "http://foo.com/media/", "/media/".
       
    36 ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/'
       
    37 LDT_MEDIA_PREFIX = STATIC_URL + 'ldt/'
       
    38 
    31 
    39 DATABASES = {
    32 DATABASES = {
    40     'default': {
    33     'default': {
    41         'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    34         'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    42         'NAME': 'platform',                      # Or path to database file if using sqlite3.
    35         'NAME': 'platform',                      # Or path to database file if using sqlite3.
    75 LDT_JSON_DEFAULT_INDENT = 0
    68 LDT_JSON_DEFAULT_INDENT = 0
    76 
    69 
    77 EMPTY_MEDIA_EXTERNALID = None
    70 EMPTY_MEDIA_EXTERNALID = None
    78 
    71 
    79 AUTO_INDEX_AFTER_SAVE = True
    72 AUTO_INDEX_AFTER_SAVE = True
    80