diff --git a/readme.md b/readme.md index 45be8fa..e3bc078 100644 --- a/readme.md +++ b/readme.md @@ -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) diff --git a/sikweb/settings-sample.py b/sikweb/settings-sample.py index d00d908..daeca9e 100644 --- a/sikweb/settings-sample.py +++ b/sikweb/settings-sample.py @@ -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