Updated Settings (markdown) authored by jvfpw18's avatar jvfpw18
# HOTMapper Settings
This page contains information about the HOTMapper Settings.
In the settings.py file, present on the HOTMapper main folder, you'll encounter the following options:
#### Login credentials in database (monetdb)
~~~
DATABASE_USER = 'monetdb'
DATABASE_USER_PASSWORD = 'monetdb'
~~~
#### Name of the database to connect to
~~~
DATABASE = 'hotmapper_demo'
~~~
#### Backup folder and file name
Absolute path of the folder where backup is created, name of the backup file.
~~~
BACKUP_FOLDER = '/home/banco/dumps/monetdb/'
BACKUP_FILE = 'backupdadoseducacionais'
~~~
#### Source table definitions
During the creation of your first table, HOTMapper will also create a table to store information about the data
source of each table you create. Here you can define the name of this table and it's columns.
~~~
SOURCE_TABLE_NAME = 'fonte'
SOURCE_TABLE_COLUMNS = {
'table_name': 'tabela',
'source': 'fonte'
}
~~~
#### Show SQL queries sent to database
~~~
ECHO = false
~~~
#### Logging level and format of the message
The possible levels, from showing less info to more, are:
* CRITICAL, ERROR, WARNING, INFO, DEBUG, NOT SET
~~~
LOGGING_LEVEL = logging.INFO
LOGGING_FORMAT = "%(levelname)s - %(name)s: %(message)s"
~~~
#### Mapping protocol columns
You can also change the name of the columns present in the mapping protocol by editing the 'standard_columns' constant
in the protocol.py file, contained in the folder hotmapper/database.
~~~
This option will be more easily avaliable when we finish working in the complete internationalization of the HOTMapper, then it'll have presets for specific languages to facilitate understanding and use of the tool
~~~
~~~
standard_columns = {
'description': 'Novo Rótulo',
'target_name': 'Var.Lab',
'standard_name': 'Rot.Padrão',
'database_name': 'Nome Banco',
'data_type': 'Tipo de Dado',
'temporary_column': 'Coluna temporária'
}
~~~
\ No newline at end of file