Example #1
0
def read_conf():
    from djapp.settings import BASE_DIR, SS_SERVER
    path = BASE_DIR+'/templates/config.js.tpl'
    ar = BASE_DIR.split('/')
    #path = '/'.join(ar[:len(ar)-1])+'/www/js/app/config.js'
    exec open(path).read()
    return apiconf
Example #2
0
def read_conf():
    path = BASE_DIR+'/templates/config.js.tpl'
    ar = BASE_DIR.split('/')
    exec open(path).read()
    return apiconf