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

Merge branch 'sudan_configuration' into 'staging'

Sudan configuration

See merge request !140
parents 06a2c932 0d505840
No related branches found
No related tags found
2 merge requests!166Staging,!140Sudan configuration
Pipeline #9131 passed
[
{
"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\":\"sudan\",\"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\":\"sudan\",\"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\":[\"sudan\"]}",
"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": {
"multiplicity": "optional",
"name": "Item Types",
"slug": "item-types",
"vocabulary": "closed"
},
"model": "taxonomies.taxonomy",
"pk": 2
},
{
"fields": {
"multiplicity": "multiple",
"name": "Tags",
"slug": "tags",
"vocabulary": "open"
},
"model": "taxonomies.taxonomy",
"pk": 3
},
{
"fields": {
"multiplicity": "optional",
"name": "Data Origins",
"slug": "data-origins",
"vocabulary": "closed"
},
"model": "taxonomies.taxonomy",
"pk": 4
},
{
"fields": {
"multiplicity": "optional",
"name": "Countries",
"slug": "countries",
"vocabulary": "closed"
},
"model": "taxonomies.taxonomy",
"pk": 5
},
{
"fields": {
"multiplicity": "optional",
"name": "Contexts",
"slug": "contexts",
"vocabulary": "closed"
},
"model": "taxonomies.taxonomy",
"pk": 6
},
{
"fields": {
"multiplicity": "optional",
"name": "Bangladesh Refugee Crisis Sectors",
"slug": "bangladesh-refugee-crisis-sectors",
"vocabulary": "closed"
},
"model": "taxonomies.taxonomy",
"pk": 7
},
{
"fields": {
"long_name": "Question",
"name": "question",
"taxonomy": 2
},
"model": "taxonomies.term",
"pk": 29
},
{
"fields": {
"long_name": "Rumour",
"name": "rumour",
"taxonomy": 2
},
"model": "taxonomies.term",
"pk": 30
},
{
"fields": {
"long_name": "Geopoll Spreadsheet",
"name": "Geopoll Spreadsheet",
"taxonomy": 4
},
"model": "taxonomies.term",
"pk": 31
},
{
"fields": {
"long_name": "Rapidpro Spreadsheet",
"name": "Rapidpro Spreadsheet",
"taxonomy": 4
},
"model": "taxonomies.term",
"pk": 32
},
{
"fields": {
"long_name": "Form Entry",
"name": "Form Entry",
"taxonomy": 4
},
"model": "taxonomies.term",
"pk": 33
},
{
"fields": {
"long_name": "Liberia",
"name": "Liberia",
"taxonomy": 5
},
"model": "taxonomies.term",
"pk": 34
},
{
"fields": {
"long_name": "Ebola-Liberia",
"name": "Ebola-Liberia",
"taxonomy": 6
},
"model": "taxonomies.term",
"pk": 35
},
{
"fields": {
"long_name": "WASH",
"name": "WASH",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 54
},
{
"fields": {
"long_name": "NFI / Shelter",
"name": "NFI / Shelter",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 55
},
{
"fields": {
"long_name": "Health",
"name": "Health",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 56
},
{
"fields": {
"long_name": "Education",
"name": "Education",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 57
},
{
"fields": {
"long_name": "Nutrition",
"name": "Nutrition",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 58
},
{
"fields": {
"long_name": "Child Protection",
"name": "Child Protection",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 59
},
{
"fields": {
"long_name": "Food Security",
"name": "Food Security",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 60
},
{
"fields": {
"long_name": "GBV",
"name": "GBV",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 61
},
{
"fields": {
"long_name": "Site Management",
"name": "Site Management",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 62
},
{
"fields": {
"long_name": "Protection",
"name": "Protection",
"taxonomy": 7
},
"model": "taxonomies.term",
"pk": 63
},
{
"fields": {
"long_name": "Concern",
"name": "concern",
"taxonomy": 2
},
"model": "taxonomies.term",
"pk": 66
}
]
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-sudan.aptivate.org'
# Country specific settings:
TIME_ZONE = 'Africa/Khartoum'
LANGUAGE_CODE = 'en'
LANGUAGES = [
('en', 'English'),
]
CONSTANCE_CONFIG = {
'CONTEXT_LOCATION': ('Sudan', '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': 'sudan'}
),
'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