Browse Source

Update the configuration README

Philippe Le Brouster 8 years ago
parent
commit
fec3ad43dd
3 changed files with 26 additions and 0 deletions
  1. 2 0
      .gitignore
  2. 10 0
      README.md
  3. 14 0
      himport.conf.local.template

+ 2 - 0
.gitignore

@@ -3,3 +3,5 @@
 python-env
 tags
 
+himport.conf
+himport.conf.local

+ 10 - 0
README.md

@@ -9,10 +9,20 @@
     ./utils/pyenv-init
 
 **Utilisation**
+
     ./utils/pyenv-himport
 
 ## Configuration
 
+**General**
+
 You can copy the configuration file from ``himport.conf.template``
 
     cp himport.conf.template himport.conf
+
+**Local configuration**
+
+    cp himport.conf.local.template himport.conf.local
+
+This file is used to store SQL information to connect to the dolibarr database
+

+ 14 - 0
himport.conf.local.template

@@ -0,0 +1,14 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+
+MYSQL_SETTINGS['password'] = "my_password_here"
+#MYSQL_SETTINGS = {
+#    "host":      "127.0.0.1",
+#    "database":  "dolibarr",
+#    "user":      "dolibarr",
+#    "password":  "my_password_here",
+#    "port":      3306,
+#}
+
+