|
@@ -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;
|