Update default database settings to make tests work

This commit is contained in:
Jan Tuomi
2017-01-13 00:23:15 +02:00
parent c92af4f7d7
commit 3ed1f154f0
2 changed files with 10 additions and 7 deletions
+3 -3
View File
@@ -45,8 +45,8 @@ Paste the following into the mysql client prompt:
```SQL
CREATE USER 'sik'@'localhost' IDENTIFIED BY 'password123';
CREATE DATABASE sik DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON sik.* TO 'sik'@'localhost';
GRANT ALL PRIVILEGES ON `%_sik` . * TO 'sik'@'%';
GRANT ALL PRIVILEGES ON `sik\_%` . * TO 'sik'@'%' IDENTIFIED BY 'password123';
GRANT ALL PRIVILEGES ON sik . * TO 'sik'@'localhost' IDENTIFIED BY 'password123';
```
### Install required python modules
@@ -62,7 +62,7 @@ pip install -r requirements.txt
`cp sikweb/settings-sample.py sikweb/settings.py`
Change the following fields in sikweb/settings.py:
Change the following fields in sikweb/settings.py if you are not using the default values:
```
NAME (default: sik)
+7 -4
View File
@@ -82,12 +82,15 @@ WSGI_APPLICATION = 'sikweb.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'INSERT YOUR DB NAME HERE',
'USER': 'INSERT YOUR DB USER HERE',
'PASSWORD': 'INSERT YOUR DB PASSWD HERE',
'NAME': 'sik',
'USER': 'sik',
'PASSWORD': 'password123',
'HOST': '127.0.0.1',
'PORT': '3306',
}
'TEST': {
'NAME': 'sik_test',
},
},
}
# Password validation