add a django wrapper around the web-service for loading settings
This commit is contained in:
parent
5484011502
commit
24696da391
|
@ -0,0 +1,10 @@
|
|||
from django.conf import settings
|
||||
|
||||
import ws
|
||||
|
||||
def get_bb_conn():
|
||||
url = settings.POLYNUM_BB_URL
|
||||
login = settings.POLYNUM_BB_ADMIN_LOGIN
|
||||
password = settings.POLYNUM_BB_ADMIN_PASSWORD
|
||||
secret_key = settings.POLYNUM_BB_SECRET_KEY
|
||||
return ws.BlackboardConnector(url, login, password, secret_key)
|
Reference in New Issue