-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtarbell_config.py
57 lines (47 loc) · 2.11 KB
/
tarbell_config.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
# -*- coding: utf-8 -*-
"""
Tarbell project configuration
"""
# Google spreadsheet key
SPREADSHEET_KEY = "1bZr7IcNqwg2mUtbbuKLJgce4yC-sB9txU7aGHvSO5JY"
# Exclude these files from publication
EXCLUDES = ['*.md', 'requirements.txt', 'node_modules', 'sass', 'js/src', 'package.json', 'Gruntfile.js']
# Spreadsheet cache lifetime in seconds. (Default: 4)
# SPREADSHEET_CACHE_TTL = 4
# Create JSON data at ./data.json, disabled by default
# CREATE_JSON = True
# Get context from a local file or URL. This file can be a CSV or Excel
# spreadsheet file. Relative, absolute, and remote (http/https) paths can be
# used.
# CONTEXT_SOURCE_FILE = ""
# EXPERIMENTAL: Path to a credentials file to authenticate with Google Drive.
# This is useful for for automated deployment. This option may be replaced by
# command line flag or environment variable. Take care not to commit or publish
# your credentials file.
# CREDENTIALS_PATH = ""
# S3 bucket configuration
S3_BUCKETS = {
# Provide target -> s3 url pairs, such as:
# "mytarget": "mys3url.bucket.url/some/path"
# then use tarbell publish mytarget to publish to it
"production": "graphics.chicagotribune.com/lollapalooza-genres-updated",
"staging": "apps.beta.tribapps.com/lollapalooza-genres-updated",
}
# Default template variables
DEFAULT_CONTEXT = {
'OMNITURE': { 'domain': 'chicagotribune.com',
'section': 'news',
'sitename': 'Chicago Tribune',
'subsection': 'local',
'subsubsection': '',
'type': 'dataproject'},
'ad_path': u'/4011/trb.chicagotribune/news/local',
'analytics_path': u'/news/local',
'data': { 'another_key': { 'description': u'This is another description.',
'key': u'another_key'},
'example_key': { 'description': u'This is a description of a key.',
'key': u'example_key'}},
'example_key': u'This is an example of a template variable provided by the google spreadsheet',
'name': 'lollapalooza-genres-updated',
'title': 'Lollapalooza Updated'
}