ソースを参照

The README file now has the basic settings.py file's content

Roland Haroutiounian 9年前
コミット
9b19c7bf32
1個のファイルの変更17行の追加0行の削除
  1. 17
    0
      README.md

+ 17
- 0
README.md ファイルの表示

@@ -8,6 +8,23 @@ First test installation :
8 8
 ** create local config in settings.py
9 9
 Copy settings.py.example to settings.py, change the conf to your local settings
10 10
 
11
+Add this basic configuration inside the settings.py file (using the connection parameters configured on your local install):
12
+```python
13
+#-*- coding:utf8 -*-
14
+
15
+import pymysql
16
+
17
+DATABASE_CONNECTIONS = {
18
+    'default': {
19
+        'module': pymysql,
20
+        'host': '127.0.0.1',
21
+        'user': 'myusername',
22
+        'passwd': 'mypassword',
23
+        'db': 'mydatabasename'
24
+    }
25
+}
26
+```
27
+
11 28
 ** create DATABASES
12 29
   mysql
13 30
   > CREATE DATABASE `lodel2`  CHARACTER SET utf8 COLLATE utf8_general_ci;

読み込み中…
キャンセル
保存