add settings for mariadb

This commit is contained in:
Andreas Zweili 2017-12-27 20:17:12 +01:00
parent e6dc844aa6
commit 8ea0a1cd61
1 changed files with 10 additions and 4 deletions

View File

@ -76,11 +76,17 @@ WSGI_APPLICATION = 'network_inventory.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.db.backends.mysql',
'NAME': 'inventorydb',
'USER': 'inventory',
'PASSWORD': '',
'HOST': '127.0.0.1',
'PORT': '3306',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
}
}
}
}
# Password validation
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators