Skip to content
Snippets Groups Projects
Commit e5500c8f authored by Tom Daley's avatar Tom Daley
Browse files

Merge branch 'sudan_configuration' into 'staging'

Add configuration for DRC and Uganda instances

See merge request !145
parents 84bc8ed6 2d876056
No related branches found
No related tags found
2 merge requests!166Staging,!145Add configuration for DRC and Uganda instances
Pipeline #9183 failed
[
{
"fields": {
"name": "main"
},
"model": "dashboard.dashboard",
"pk": 1
},
{
"fields": {
"column": 1,
"dashboard": 1,
"height": "tall",
"row": 1,
"settings": "{\"text\":\"<p>Some of these rumours are also being addressed in the Internews HIS narrowcast programme \\u2018Bala-Bura\\u2019 (played in listening groups throughout the camps) and the Internews HRSM radio programme \\u2018Talking Peace\\u2019 (every Monday 16.00h on Radio Naf).</p><p>Heard a rumour? Want to give feedback? Please send your rumours, questions and feedback to <a href='mailto:bd-rumours@internews.org'>bd-rumours@internews.org</a></p>\",\"html\":true,\"title\":\"Situation Report: 26-Sep-2018\"}",
"widget_type": "basic-text-widget",
"width": 4
},
"model": "dashboard.widgetinstance",
"pk": 1
},
{
"fields": {
"column": 0,
"dashboard": 1,
"height": "tall",
"row": 1,
"settings": "{\"taxonomy\":\"drc\",\"exclude_categories\":[\"Unknown\"],\"periods\":[{\"start_time\":\"2018-09-13\",\"end_time\":\"2018-09-20\"}],\"title\":\"All feedback (recent)\"}",
"widget_type": "term-count-chart",
"width": 8
},
"model": "dashboard.widgetinstance",
"pk": 2
},
{
"fields": {
"column": 0,
"dashboard": 1,
"height": "tall",
"row": 2,
"settings": "{\"count\":25,\"order_by\":\"-timestamp\",\"filters\":{},\"title\":\"Recent Updates\"}",
"widget_type": "table-widget",
"width": 12
},
"model": "dashboard.widgetinstance",
"pk": 3
},
{
"fields": {
"column": 0,
"dashboard": 1,
"height": "tall",
"row": 3,
"settings": "{\"taxonomy\":\"drc\",\"exclude_categories\":[\"Unknown\"],\"periods\":[{\"start_time\":\"1970-01-01\",\"end_time\":\"2100-01-01\"}],\"title\":\"All feedback\"}",
"widget_type": "term-count-chart",
"width": 12
},
"model": "dashboard.widgetinstance",
"pk": 4
},
{
"fields": {
"label": "kobo",
"profile": "{\"name\":\"Kobo\",\"format\":\"excel\",\"label\":\"kobo\",\"skip_header\":2,\"taxonomies\":{},\"columns\":[{\"field\":\"timestamp\",\"type\":\"date\",\"name\":\"start\",\"date_format\":\"%Y-%m-%dT%H: %M: %S.%f%z\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"end\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"username\"},{\"field\":\"body\",\"type\":\"text\",\"name\":\"What is the feedback or rumour?\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"date\"},{\"field\":\"gender\",\"type\":\"text\",\"name\":\"gender\"},{\"field\":\"age\",\"type\":\"text\",\"name\":\"Age\"},{\"field\":\"location\",\"type\":\"text\",\"name\":\"Location\"},{\"field\":\"enumerator\",\"type\":\"text\",\"name\":\"comment\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_id\"},{\"field\":\"external_id\",\"type\":\"text\",\"name\":\"_uuid\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_submission_time\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_validation_status\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_index\"}]}"
},
"model": "chn_spreadsheet.sheetprofile",
"pk": 3
},
{
"fields": {
"label": "etc",
"profile": "{\"name\":\"ETC\",\"format\":\"excel\",\"label\":\"etc\",\"skip_header\":1,\"taxonomies\":{},\"columns\":[{\"field\":\"taxonomy\",\"type\":\"text\",\"name\":\"Category\"},{\"field\":\"body\",\"type\":\"text\",\"name\":\"Issue\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"Logged by\"},{\"field\":\"timestamp\",\"type\":\"date\",\"name\":\"Date\",\"date_format\":\"%Y-%m-%d\"},{\"field\":\"terms\",\"type\":\"taxonomy\",\"name\":\"Gender\",\"taxonomy\":\"tags\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"Age\"},{\"field\":\"location\",\"type\":\"text\",\"name\":\"Location\"}]}"
},
"model": "chn_spreadsheet.sheetprofile",
"pk": 4
},
{"model": "chn_spreadsheet.sheetprofile", "pk": 5, "fields": {"label": "kobo_master", "profile": "{\"name\":\"(Redundant)\",\"format\":\"excel\",\"label\":\"kobo_master\",\"skip_header\":1,\"taxonomies\":{},\"columns\":[{\"field\":\"timestamp\",\"type\":\"date\",\"name\":\"Date\",\"date_format\":\"%Y-%m-%dT%H: %M: %S.%f%z\"},{\"field\":\"body\",\"type\":\"text\",\"name\":\"Feedback\"},{\"field\":\"translation\",\"type\":\"text\",\"name\":\"Translation\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"Theme\"},{\"field\":\"terms\",\"type\":\"taxonomy\",\"name\":\"Tags\",\"taxonomy\":\"tags\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"FB Category\"},{\"field\":\"gender\",\"type\":\"text\",\"name\":\"Gender\"},{\"field\":\"age\",\"type\":\"text\",\"name\":\"Age\"},{\"field\":\"location\",\"type\":\"text\",\"name\":\"Location\"},{\"field\":\"enumerator\",\"type\":\"text\",\"name\":\"Ennumerator\"},{\"field\":\"source\",\"type\":\"text\",\"name\":\"Source\"}]}"}},
{
"fields": {
"name": "main"
},
"model": "tabbed_page.tabbedpage",
"pk": 1
},
{
"fields": {
"default": false,
"label": "Feedback",
"name": "feedback",
"page": 1,
"position": 2,
"settings": "{\"label\":\"Feedback\",\"columns\":[\"select_item\",\"timestamp\",\"body\",\"translation\",\"category\",\"tags\",\"feedback_type\",\"gender\",\"age\",\"location\",\"enumerator\",\"source\",\"external_id\"],\"filters\":{\"terms\":[]},\"dynamic_filters\":[\"time_range\",\"category\",\"tags\",\"gender\",\"feedback_type\",\"age_range\",\"location\",\"enumerator\",\"source\",\"external_id\"],\"categories\":[\"drc\"]}",
"tab_type": "view-and-edit-table"
},
"model": "tabbed_page.tabinstance",
"pk": 4
},
{
"fields": {
"key": "ITEM_TYPE_CATEGORY",
"value": "gAJYLAAAAHsiYWxsIjogImJhbmdsYWRlc2gtcmVmdWdlZS1jcmlzaXMtc2VjdG9ycyJ9cQEu"
},
"model": "data_layer.customconstance",
"pk": 1
}
]
[
{
"fields": {
"name": "main"
},
"model": "dashboard.dashboard",
"pk": 1
},
{
"fields": {
"column": 1,
"dashboard": 1,
"height": "tall",
"row": 1,
"settings": "{\"text\":\"<p>Some of these rumours are also being addressed in the Internews HIS narrowcast programme \\u2018Bala-Bura\\u2019 (played in listening groups throughout the camps) and the Internews HRSM radio programme \\u2018Talking Peace\\u2019 (every Monday 16.00h on Radio Naf).</p><p>Heard a rumour? Want to give feedback? Please send your rumours, questions and feedback to <a href='mailto:bd-rumours@internews.org'>bd-rumours@internews.org</a></p>\",\"html\":true,\"title\":\"Situation Report: 26-Sep-2018\"}",
"widget_type": "basic-text-widget",
"width": 4
},
"model": "dashboard.widgetinstance",
"pk": 1
},
{
"fields": {
"column": 0,
"dashboard": 1,
"height": "tall",
"row": 1,
"settings": "{\"taxonomy\":\"uganda\",\"exclude_categories\":[\"Unknown\"],\"periods\":[{\"start_time\":\"2018-09-13\",\"end_time\":\"2018-09-20\"}],\"title\":\"All feedback (recent)\"}",
"widget_type": "term-count-chart",
"width": 8
},
"model": "dashboard.widgetinstance",
"pk": 2
},
{
"fields": {
"column": 0,
"dashboard": 1,
"height": "tall",
"row": 2,
"settings": "{\"count\":25,\"order_by\":\"-timestamp\",\"filters\":{},\"title\":\"Recent Updates\"}",
"widget_type": "table-widget",
"width": 12
},
"model": "dashboard.widgetinstance",
"pk": 3
},
{
"fields": {
"column": 0,
"dashboard": 1,
"height": "tall",
"row": 3,
"settings": "{\"taxonomy\":\"uganda\",\"exclude_categories\":[\"Unknown\"],\"periods\":[{\"start_time\":\"1970-01-01\",\"end_time\":\"2100-01-01\"}],\"title\":\"All feedback\"}",
"widget_type": "term-count-chart",
"width": 12
},
"model": "dashboard.widgetinstance",
"pk": 4
},
{
"fields": {
"label": "kobo",
"profile": "{\"name\":\"Kobo\",\"format\":\"excel\",\"label\":\"kobo\",\"skip_header\":2,\"taxonomies\":{},\"columns\":[{\"field\":\"timestamp\",\"type\":\"date\",\"name\":\"start\",\"date_format\":\"%Y-%m-%dT%H: %M: %S.%f%z\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"end\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"username\"},{\"field\":\"body\",\"type\":\"text\",\"name\":\"What is the feedback or rumour?\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"date\"},{\"field\":\"gender\",\"type\":\"text\",\"name\":\"gender\"},{\"field\":\"age\",\"type\":\"text\",\"name\":\"Age\"},{\"field\":\"location\",\"type\":\"text\",\"name\":\"Location\"},{\"field\":\"enumerator\",\"type\":\"text\",\"name\":\"comment\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_id\"},{\"field\":\"external_id\",\"type\":\"text\",\"name\":\"_uuid\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_submission_time\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_validation_status\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"_index\"}]}"
},
"model": "chn_spreadsheet.sheetprofile",
"pk": 3
},
{
"fields": {
"label": "etc",
"profile": "{\"name\":\"ETC\",\"format\":\"excel\",\"label\":\"etc\",\"skip_header\":1,\"taxonomies\":{},\"columns\":[{\"field\":\"taxonomy\",\"type\":\"text\",\"name\":\"Category\"},{\"field\":\"body\",\"type\":\"text\",\"name\":\"Issue\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"Logged by\"},{\"field\":\"timestamp\",\"type\":\"date\",\"name\":\"Date\",\"date_format\":\"%Y-%m-%d\"},{\"field\":\"terms\",\"type\":\"taxonomy\",\"name\":\"Gender\",\"taxonomy\":\"tags\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"Age\"},{\"field\":\"location\",\"type\":\"text\",\"name\":\"Location\"}]}"
},
"model": "chn_spreadsheet.sheetprofile",
"pk": 4
},
{"model": "chn_spreadsheet.sheetprofile", "pk": 5, "fields": {"label": "kobo_master", "profile": "{\"name\":\"(Redundant)\",\"format\":\"excel\",\"label\":\"kobo_master\",\"skip_header\":1,\"taxonomies\":{},\"columns\":[{\"field\":\"timestamp\",\"type\":\"date\",\"name\":\"Date\",\"date_format\":\"%Y-%m-%dT%H: %M: %S.%f%z\"},{\"field\":\"body\",\"type\":\"text\",\"name\":\"Feedback\"},{\"field\":\"translation\",\"type\":\"text\",\"name\":\"Translation\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"Theme\"},{\"field\":\"terms\",\"type\":\"taxonomy\",\"name\":\"Tags\",\"taxonomy\":\"tags\"},{\"field\":\"ignore\",\"type\":\"ignore\",\"name\":\"FB Category\"},{\"field\":\"gender\",\"type\":\"text\",\"name\":\"Gender\"},{\"field\":\"age\",\"type\":\"text\",\"name\":\"Age\"},{\"field\":\"location\",\"type\":\"text\",\"name\":\"Location\"},{\"field\":\"enumerator\",\"type\":\"text\",\"name\":\"Ennumerator\"},{\"field\":\"source\",\"type\":\"text\",\"name\":\"Source\"}]}"}},
{
"fields": {
"name": "main"
},
"model": "tabbed_page.tabbedpage",
"pk": 1
},
{
"fields": {
"default": false,
"label": "Feedback",
"name": "feedback",
"page": 1,
"position": 2,
"settings": "{\"label\":\"Feedback\",\"columns\":[\"select_item\",\"timestamp\",\"body\",\"translation\",\"category\",\"tags\",\"feedback_type\",\"gender\",\"age\",\"location\",\"enumerator\",\"source\",\"external_id\"],\"filters\":{\"terms\":[]},\"dynamic_filters\":[\"time_range\",\"category\",\"tags\",\"gender\",\"feedback_type\",\"age_range\",\"location\",\"enumerator\",\"source\",\"external_id\"],\"categories\":[\"uganda\"]}",
"tab_type": "view-and-edit-table"
},
"model": "tabbed_page.tabinstance",
"pk": 4
},
{
"fields": {
"key": "ITEM_TYPE_CATEGORY",
"value": "gAJYLAAAAHsiYWxsIjogImJhbmdsYWRlc2gtcmVmdWdlZS1jcmlzaXMtc2VjdG9ycyJ9cQEu"
},
"model": "data_layer.customconstance",
"pk": 1
}
]
from __future__ import unicode_literals, absolute_import
import private_settings
import json
from pymysql import install_as_MySQLdb
DEBUG = False
ASSETS_DEBUG = DEBUG
ASSETS_AUTO_BUILD = DEBUG
install_as_MySQLdb()
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'internewshid',
'USER': 'internewshid',
'PASSWORD': private_settings.DB_PASSWORD,
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
},
}
}
EMAIL_HOST = 'localhost'
SITE_HOSTNAME = 'lin-internewshid-drc.aptivate.org'
# Country specific settings:
TIME_ZONE = 'Africa/Kinshasa'
LANGUAGE_CODE = 'en'
LANGUAGES = [
('en', 'English'),
]
CONSTANCE_CONFIG = {
'CONTEXT_LOCATION': ('DRC', 'Location of dashboard deployment'),
'DEFAULT_TABBED_PAGE_NAME': ('main', 'Name of default tabbed page'),
'DEFAULT_TAB_NAME': ('all', 'Name of default tab within page'),
'ITEM_TYPE_CATEGORY': (
json.dumps(
{'all': 'drc'}
),
'Single taxonomy to use to categorise all types of item'),
'GLOBAL_DATA_SOURCE': ('kobo', 'Sheet profile to use when loading data from the main menu'),
}
from __future__ import unicode_literals, absolute_import
import private_settings
import json
from pymysql import install_as_MySQLdb
DEBUG = False
ASSETS_DEBUG = DEBUG
ASSETS_AUTO_BUILD = DEBUG
install_as_MySQLdb()
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'internewshid',
'USER': 'internewshid',
'PASSWORD': private_settings.DB_PASSWORD,
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
},
}
}
EMAIL_HOST = 'localhost'
SITE_HOSTNAME = 'lin-internewshid-uganda.aptivate.org'
# Country specific settings:
TIME_ZONE = 'Africa/Kampala'
LANGUAGE_CODE = 'en'
LANGUAGES = [
('en', 'English'),
]
CONSTANCE_CONFIG = {
'CONTEXT_LOCATION': ('Uganda', 'Location of dashboard deployment'),
'DEFAULT_TABBED_PAGE_NAME': ('main', 'Name of default tabbed page'),
'DEFAULT_TAB_NAME': ('all', 'Name of default tab within page'),
'ITEM_TYPE_CATEGORY': (
json.dumps(
{'all': 'uganda'}
),
'Single taxonomy to use to categorise all types of item'),
'GLOBAL_DATA_SOURCE': ('kobo', 'Sheet profile to use when loading data from the main menu'),
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment