This repository has been archived by the owner on Apr 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
197 lines (141 loc) · 7.02 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# -*- coding: UTF-8 -*-
from django.conf.urls import patterns, url
#from django.conf.urls.i18n import i18n_patterns
MAIN_ENTITY_LEVEL = 'municipio'
# Main entity name. Must be the same used in data/entidades.csv
MAIN_ENTITY_NAME = 'Ayuntamiento de Arona'
# Theme Budget Loader class name. Default: 'SimpleBudgetLoader'
BUDGET_LOADER = 'AronaBudgetLoader'
# Theme Payments Loader class name. Default: 'PaymentsLoader'
PAYMENTS_LOADER = 'AronaPaymentsLoader'
# 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']
# 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 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 = (
('es', 'Castellano'),
# ('en', 'English'),
# ('ca', 'Català'),
# ('eu', 'Euskera'),
# ('gl', 'Galego'),
)
# Facebook Aplication ID used in social_sharing temaplate. Default: ''
# In order to get the ID create an app in https://developers.facebook.com/
FACEBOOK_ID = '327354484315519'
# Google Analytics ID. Default: ''
# In order to get the ID create a Google Analytics Acount in https://analytics.google.com/analytics/web/
ANALYTICS_ID = 'UA-28946840-19'
# Setup Data Source Budget link
DATA_SOURCE_BUDGET = 'http://www.arona.org/portal/ldoc_d10_v3.jsp?codMenu=1594&codMenuPN=1457&codMenuSN=882&codMenuTN=1610&codResi=1&language=es'
# Setup Data Source Population link
DATA_SOURCE_POPULATION = 'http://www.ine.es/jaxiT3/Tabla.htm?t=2892&L=0'
# Setup Data Source Inflation link
DATA_SOURCE_INFLATION = 'http://www.ine.es/jaxiT3/Datos.htm?t=22350'
# Setup Main Entity Web Url
MAIN_ENTITY_WEB_URL = 'http://www.arona.org/'
# Setup Main Entity Legal Url (if empty we hide the link)
MAIN_ENTITY_LEGAL_URL = 'http://www.arona.org/portal/fdes_d4_v1.jsp?codAdirecto=1217&codbusqueda=1282&language=es'
# 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 = ''
# We can define additional URLs applicable only to the theme. These will get added
# to the project URL patterns list.
# Must be needed to uncomment 3rd line in order to import i18n_patterns
# EXTRA_URLS = i18n_patterns('presupuesto-base.views',
# url(r'^visita-guiada$', 'guidedvisit', name="guidedvisit"),
# )
# Welcome Settings
# ----------------------
# Programmes to feature as example in home page.
FEATURED_PROGRAMMES = ['1621', '1710', '3380', '2410', '3110']
# 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': [['11', '113']],
'label': 'Impuesto a bienes inmuebles de naturaleza urbana',
'link_id': '11'
},
{
'nodes': [['30', '300']],
'label': 'Servicio de abastecimiento de agua',
'link_id': '30'
},
'42', '45',
{
'nodes': [['29', '293']],
'label': 'Impuesto general indirecto canario (IGIC)',
'link_id': '29'
},
{
'nodes': [['11', '115']],
'label': 'Impuesto sobre vehículos de tracción mecánica',
'link_id': '11'
},
{
'nodes': [['30', '302']],
'label': 'Servicio de recogida de basuras',
'link_id': '30'
},
]
OVERVIEW_EXPENSE_NODES = ['16', '13', '92', '15', '33', '23', '34', '17', '32']
# How much padding between Sankey nodes. Default: 10 (Optional)
# Note: higher values will result in a more 'curvy accordion'.
# OVERVIEW_NODE_PADDING = 15
# How aggresive should the Sankey diagram reorder the nodes. Default: 0.79 (Optional)
# Note: 0.5 usually leaves nodes ordered as defined. 0.95 sorts by size (decreasing).
# OVERVIEW_RELAX_FACTOR = 0.5
# 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: 70 (Optional)
# TREEMAP_LABELS_MIN_SIZE = 70
# 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