src/ldtplatform/config.py.tmpl
changeset 1 5778de052a1b
parent 0 87104b7cb3d6
child 14 cfde73c6d019
equal deleted inserted replaced
0:87104b7cb3d6 1:5778de052a1b
     1 # -*- coding: utf-8 -*-
     1 # -*- coding: utf-8 -*-
     2 import os, logging
     2 import os, logging
     3 
     3 
     4 SITE_ID = 1
     4 SITE_ID = 1
     5 
     5 
       
     6 #configuration for runserver
       
     7 #BASE_URL = '/'
       
     8 #PLATFORM_BASE_URL = '/'
       
     9 #WEB_URL = ''
       
    10 #WEB_AUTH = []
       
    11 
       
    12 
       
    13 
     6 #BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
    14 #BASE_DIR = os.path.dirname(os.path.abspath(__file__)).rstrip("/")+"/"
     7 BASE_DIR = '%(base_dir)s'
    15 BASE_DIR = '%(base_dir)s'
     8 BASE_URL = '%(base_url)s'
    16 BASE_URL = '%(base_url)s'
       
    17 PLATFORM_BASE_URL = BASE_URL + 'ldtplatform/'
     9 WEB_URL = '%(web_url)s'
    18 WEB_URL = '%(web_url)s'
    10 WEB_AUTH = [] # example [{'REGEX': 'localhost/~ymh/platform', 'NAME': 'ymh', 'PASSWORD': 'ymh'}]
    19 WEB_AUTH = [] # example [{'REGEX': 'localhost/~ymh/platform', 'NAME': 'ymh', 'PASSWORD': 'ymh'}]
    11 STATIC_URL = BASE_URL + 'static/site/'
    20 STATIC_URL = BASE_URL + 'static/site/'
    12 
    21 
    13 
    22