Skip to content
Snippets Groups Projects
Verified Commit a7517245 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add settings for untis db.

parent d7a74d7e
No related branches found
No related tags found
1 merge request!13Resolve "Support import from MySQL"
from aleksis.core.util.core_helpers import lazy_config
DATABASES = {
'untis': {
'ENGINE': 'django.db.backends.mysql',
'NAME': lazy_config("UNTIS_NAME"),
'USER': lazy_config("UNTIS_USER"),
'PASSWORD': lazy_config("UNTIS_PASSWORD"),
'HOST': lazy_config("UNTIS_HOST"),
'PORT': lazy_config("UNTIS_PORT"),
}
}
CONSTANCE_CONFIG = {
"UNTIS_NAME": ("untis", _("Name of database"), "char_field"),
"UNTIS_USER": ("aleksis", _("Database user"), "char_field"),
"UNTIS_PASSWORD": ("aleksis", _("Database password"), "char_field"),
"UNTIS_HOST": ("127.0.0.1", _("Database host"), "char_field"),
"UNTIS_PORT": ("3306", _("Database port"), "char_field"),
}
CONSTANCE_CONFIG_FIELDSETS = {
"Untis Database Settings": ("UNTIS_NAME", "UNTIS_USER", "UNTIS_PASSWORD", "UNTIS_HOST", "UNTIS_PORT"),
}
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