add publication options: delay, beta
[redakcja.git] / apps / apiclient / settings.py
1 from django.conf import settings
2
3
4 WL_CONSUMER_KEY = getattr(settings, 'APICLIENT_WL_CONSUMER_KEY', None)
5 WL_CONSUMER_SECRET = getattr(settings, 'APICLIENT_WL_CONSUMER_SECRET', None)
6
7 WL_API_URL = getattr(settings, 'APICLIENT_WL_API_URL', 'https://wolnelektury.pl/api/')
8
9 BETA_API_URL = getattr(settings, 'APICLIENT_BETA_API_URL', 'http://dev.wolnelektury.pl/api/')
10
11 WL_REQUEST_TOKEN_URL = getattr(settings, 'APICLIENT_WL_REQUEST_TOKEN_URL', 
12         WL_API_URL + 'oauth/request_token/')
13 WL_ACCESS_TOKEN_URL = getattr(settings, 'APICLIENT_WL_ACCESS_TOKEN_URL', 
14         WL_API_URL + 'oauth/access_token/')
15 WL_AUTHORIZE_URL = getattr(settings, 'APICLIENT_WL_AUTHORIZE_URL', 
16         WL_API_URL + 'oauth/authorize/')
17
18 BETA_REQUEST_TOKEN_URL = BETA_API_URL + 'oauth/request_token/'
19 BETA_ACCESS_TOKEN_URL = BETA_API_URL + 'oauth/access_token/'
20 BETA_AUTHORIZE_URL = BETA_API_URL + 'oauth/authorize/'