-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
183 lines (123 loc) · 6.04 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# -*- coding: UTF-8 -*-
MAIN_ENTITY_LEVEL = 'municipio'
# Main entity name. Must be the same used in data/entidades.csv
MAIN_ENTITY_NAME = 'Menorca'
# Theme Budget Loader class name. Default: 'SimpleBudgetLoader'
BUDGET_LOADER = 'MenorcaBudgetLoader'
# Theme Payments Loader class name. Default: 'PaymentsLoader'
# PAYMENTS_LOADER = 'MenorcaPaymentsLoader'
# Show / hide Settings
# ----------------------
# Show Payments section in menu & home options. Default: False.
# SHOW_PAYMENTS = True
# Configure 'by area' payment breakdown. Default: ['area', 'payee', 'description']
# PAYMENTS_BREAKDOWN_BY_AREA = ['area', 'payee', 'description']
# Configure 'by payee' payment breakdown. Default: ['payee', 'area', 'description']
# PAYMENTS_BREAKDOWN_BY_PAYEE = ['payee', 'area', 'description']
# Define if payments year slider is a range (True) or a single year (False). Default: True
# PAYMENTS_YEAR_RANGE = False
# Show Tax Receipt section in menu & home options. Default: False.
# SHOW_TAX_RECEIPT = True
# Show Counties & Towns links in Policies section in menu & home options. Default: False.
# SHOW_COUNTIES_AND_TOWNS = True
# Search in entity names. Default: False.
# SEARCH_ENTITIES = True
# Budget Settings
# ----------------------
# Show an extra tab with institutional breakdown. Default: True.
# SHOW_INSTITUTIONAL_TAB = False
# Show section pages. Still under development, see #347. Default: False.
# SHOW_SECTION_PAGES = True
# Are institutional codes consistent along the years. Default: False.
# Important: We need this to be True for the institutional treemap to work properly.
# CONSISTENT_INSTITUTIONAL_CODES = True
# Show an extra treemap in the Policy page, showing institutional breakdown. Default: False.
# Important: insitutional codes must be consistent along the years, see CONSISTENT_INSTITUTIONAL_CODES.
# SHOW_GLOBAL_INSTITUTIONAL_TREEMAP = True
# Show an extra tab with funding breakdown (only applicable to some budgets). Default: False.
# SHOW_FUNDING_TAB = True
# Show breadcrumbs in policies. Default: False.
# SHOW_BREADCRUMBS = True
# Show an extra column with actual revenues/expenses. Default: True.
# Warning: the execution data still gets shown in the summary chart and in downloads.
# SHOW_ACTUAL = False
# Should we group elements at the economic subheading level, or list all of them,
# grouping by uid?. Default: True. (i.e. group by uid, show all elements)
# BREAKDOWN_BY_UID = False
# Include financial income/expenditures in overview and global policy breakdowns. Default: False
INCLUDE_FINANCIAL_CHAPTERS_IN_BREAKDOWNS = True
# Does the data includes a fifth functional classification level, subprogrammes?. Default: False
# USE_SUBPROGRAMMES = True
# Theme Settings
# ----------------------
# Supported languages. Default: ('es', 'Castellano')
LANGUAGES = (
('ca', 'Català'),
('es', 'Castellano'),
)
# Plausible data domain. Default: ''
PLAUSIBLE_DOMAIN = 'menorca.dondevanmisimpuestos.es'
# Setup Data Source Budget link
DATA_SOURCE_BUDGET = 'https://www.cime.es/Contingut.aspx?IdPub=2080'
# Setup Data Source Population link
DATA_SOURCE_POPULATION = 'https://www.ine.es/dynt3/inebase/index.htm?padre=517'
# Setup Data Source Inflation link
DATA_SOURCE_INFLATION = 'https://www.ine.es/jaxiT3/Tabla.htm?t=22350&L=0'
# Setup Main Entity Web Url
MAIN_ENTITY_WEB_URL = 'https://www.cime.es/'
# Setup Main Entity Legal Url (if empty we hide the link)
MAIN_ENTITY_LEGAL_URL = 'https://www.cime.es/Contingut.aspx?IdPub=1672'
# Setup Main Entity Legal Url (if empty we hide the link)
MAIN_ENTITY_PRIVACY_URL = ''
# External URL for Cookies Policy (if empty we use out template page/cookies.html)
COOKIES_URL = ''
# Welcome Settings
# ----------------------
# Programmes to feature as example in home page.
FEATURED_PROGRAMMES = ['23121', '43200', '44100', '17200']
# Number of programmes to feature in home page. Default: 3
# NUMBER_OF_FEATURED_PROGRAMMES = 3
# Overview Settings
# ----------------------
# Use new Sankey visualization or the old one. Default: False
OVERVIEW_USE_NEW_VIS = True
OVERVIEW_INCOME_NODES = [
{
'nodes': ['45', '75'],
'label.es': 'De comunidades autónomas',
'label.ca': 'De comunitats autònomes'
},
{
'nodes': ['42', '72'],
'label.es': 'De la Administración del Estado',
'label.ca': "De l'Administració de l'Estat"
},
'31', '21', '10'
]
OVERVIEW_EXPENSE_NODES = ['23', '91', '45', '92', '43', '01', '41', '33', '13', '44']
# How much padding between Sankey nodes. Default: 2 (Optional)
# OVERVIEW_NODE_PADDING = 2
# Overview node minimum height to show labels. Default: 16 (Optional)
# OVERVIEW_LABELS_MIN_SIZE = 16
# Overview node labels minimum font size. Default: 11 (Optional)
# OVERVIEW_LABELS_FONT_SIZE_MIN = 11
# Overview node labels maximum font size. Default: 11 (Optional)
# OVERVIEW_LABELS_FONT_SIZE_MAX = 38
# Nodes ordered by amount by default. If set to True keeps the order defined in nodes array. Default: False (Optional)
# OVERVIEW_FORCE_ORDER = False
# Show Subtotals panel in Overview. Default: False
# SHOW_OVERVIEW_SUBTOTALS = True
# Calculate budget indicators (True), or show/hide the ones hardcoded in HTML (False). Default: True.
# CALCULATE_BUDGET_INDICATORS = False
# Treemap Settings
# ----------------------
# Treemaps minimum height or width to show labels. Default: 30 (Optional)
# TREEMAP_LABELS_MIN_SIZE = 30
# Treemap minimum font size. Default: 11 (Optional)
# TREEMAP_LABELS_FONT_SIZE_MIN = 11
# Treemap use max value between tabs to calculate size. Default: True
# TREEMAP_GLOBAL_MAX_VALUE = False
# Allow overriding of default treemap color scheme
# COLOR_SCALE = ['#1f77b4', '#ff7f0e', '#2ca02c', '#d62728', '#9467bd', '#8c564b', '#e377c2', '#e7969c', '#bcbd22', '#17becf']
# How many levels to show in the global institutional treemap? Default: 1.
# INSTITUTIONAL_MAX_LEVELS = 2