-
Notifications
You must be signed in to change notification settings - Fork 8
/
settings.py
57 lines (48 loc) · 2.05 KB
/
settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import os
from newsroom.default_settings import BLUEPRINTS as blueprints, CORE_APPS, CLIENT_CONFIG
if os.environ.get('PUSH'):
BLUEPRINTS = blueprints
else:
BLUEPRINTS = [blueprint for blueprint in blueprints if 'push' not in blueprint]
BLUEPRINTS.append('newsroom.am_news')
BLUEPRINTS.append('newsroom.market_place')
BLUEPRINTS.append('newsroom.media_releases')
BLUEPRINTS.append('aap_public')
BLUEPRINTS.append('newsroom.factcheck')
# We want the section filter to be last
# So we remove it from CORE_APPS and place after
# aapX/Media Releases etc
if 'newsroom.news_api' in CORE_APPS:
CORE_APPS.remove('newsroom.news_api')
INSTALLED_APPS = [
'instrumentation',
'photos',
'releases',
'newsroom.market_place',
'newsroom.media_releases',
'newsroom-defaults',
'newsroom.news_api',
'newsroom.factcheck',
]
CONTACT_ADDRESS = 'https://www.aap.com.au/contact'
CLIENT_TIME_FORMAT = 'HH:mm'
CLIENT_DATE_FORMAT = 'DD/MM/YYYY'
SITE_NAME = 'AAP Newsroom'
COPYRIGHT_HOLDER = 'AAP'
COPYRIGHT_NOTICE = ''
USAGE_TERMS = ''
LANGUAGES = ['en']
DEFAULT_LANGUAGE = 'en'
MULTIMEDIA_WEBSITE_URL = os.environ.get('MULTIMEDIA_WEBSITE_URL', 'https://photos.aap.com.au')
MULTIMEDIA_WEBSITE_SEARCH_URL = '{}/{}/'.format(MULTIMEDIA_WEBSITE_URL,
os.environ.get('MULTIMEDIA_WEBSITE_SEARCH_PATH', 'search'))
VIDEOS_WEBSITE_URL = os.environ.get('VIDEOS_WEBSITE_URL', 'https://photos.aap.com.au/galleries/Newsroom/Video')
EXPLAINERS_WEBSITE_URL = os.environ.get('EXPLAINERS_WEBSITE_URL',
'https://photos.aap.com.au/search/(supplementalcategory'
':VIDEXP)/Visual%20Explainers')
FACTCHECK_WEBSITE_URL = os.environ.get('FACTCHECK_WEBSITE_URL', 'https://www.aap.com.au/factcheck/')
CLIENT_CONFIG['list_animations'] = False
CLIENT_CONFIG['multimedia_website_search_url'] = MULTIMEDIA_WEBSITE_SEARCH_URL
BACK_STORY_URL = os.environ.get('BACK_STORY_URL', 'https://backstory.aap.com.au/')
ALLOW_PICTURE_DOWNLOAD = False
MONITORING_REPORT_NAME = 'Newswire'