Browse Source

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

Roland Haroutiounian 9 years ago
parent
commit
9b19c7bf32
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      README.md

+ 17
- 0
README.md View File

8
 ** create local config in settings.py
8
 ** create local config in settings.py
9
 Copy settings.py.example to settings.py, change the conf to your local settings
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
 ** create DATABASES
28
 ** create DATABASES
12
   mysql
29
   mysql
13
   > CREATE DATABASE `lodel2`  CHARACTER SET utf8 COLLATE utf8_general_ci;
30
   > CREATE DATABASE `lodel2`  CHARACTER SET utf8 COLLATE utf8_general_ci;

Loading…
Cancel
Save