web/ldtplatform/settings.py
changeset 43 21cbaab383ce
parent 39 47504376ee9d
child 55 2e2989c3072c
equal deleted inserted replaced
42:491513b6e144 43:21cbaab383ce
   147 OAUTH_PROVIDER_SECRET_SIZE = 32
   147 OAUTH_PROVIDER_SECRET_SIZE = 32
   148 OAUTH_PROVIDER_VERIFIER_SIZE = 10
   148 OAUTH_PROVIDER_VERIFIER_SIZE = 10
   149 OAUTH_PROVIDER_CONSUMER_KEY_SIZE = 256
   149 OAUTH_PROVIDER_CONSUMER_KEY_SIZE = 256
   150 OAUTH_AUTHORIZE_VIEW = 'oauth_provider.views.fake_authorize_view'
   150 OAUTH_AUTHORIZE_VIEW = 'oauth_provider.views.fake_authorize_view'
   151 OAUTH_CALLBACK_VIEW = 'oauth_provider.views.fake_callback_view'
   151 OAUTH_CALLBACK_VIEW = 'oauth_provider.views.fake_callback_view'
   152 TEST_WEBSERVER_ADDRPORT = "127.0.0.1:8888"
   152 TEST_WEBSERVER_ADDRPORT = "127.0.0.1:8000"
   153 
   153 
   154 from config import *
   154 from config import *
   155 
   155 
   156 LOGIN_URL = BASE_URL + 'ldtplatform/accounts/login/'
   156 if not "LOGIN_URL" in locals():
   157 LOGOUT_URL = BASE_URL + 'ldtplatform/accounts/logout/'
   157     LOGIN_URL = BASE_URL + 'ldtplatform/accounts/login/'
   158 LOGIN_REDIRECT_URL = BASE_URL + 'ldtplatform'
   158 if not "LOGOUT_URL" in locals():
       
   159     LOGOUT_URL = BASE_URL + 'ldtplatform/accounts/logout/'
       
   160 if not "LOGIN_REDIRECT_URL" in locals():
       
   161     LOGIN_REDIRECT_URL = BASE_URL + 'ldtplatform'
   159 
   162 
   160 GLOBAL_LOG_LEVEL = LOG_LEVEL
   163 if not "GLOBAL_LOG_LEVEL" in locals():
   161 GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}]
   164     GLOBAL_LOG_LEVEL = LOG_LEVEL
       
   165 if not "GLOBAL_LOG_HANDLERS" in locals():
       
   166     GLOBAL_LOG_HANDLERS = [{'handler':logging.FileHandler(LOG_FILE), 'format':"%(asctime)s - %(levelname)s : %(message)s"}]
   162 
   167