|
@@ -5,34 +5,10 @@ First test installation :
|
5
|
5
|
** install dependencies
|
6
|
6
|
pip install -r requirements.txt
|
7
|
7
|
|
8
|
|
-** create local config in Lodel/settings/locale.py
|
9
|
|
-DATABASES = {
|
10
|
|
- 'default': {
|
11
|
|
- 'ENGINE': 'django.db.backends.mysql',
|
12
|
|
- 'NAME': 'lodel2',
|
13
|
|
- 'USER': 'lodel',
|
14
|
|
- 'PASSWORD': 'lodel',
|
15
|
|
- 'HOST': 'localhost',
|
16
|
|
- }
|
17
|
|
-}
|
|
8
|
+** create local config in settings.py
|
|
9
|
+Copy settings.py.example to settings.py, change the conf to your local settings
|
18
|
10
|
|
19
|
11
|
** create DATABASES
|
20
|
12
|
mysql
|
21
|
13
|
> CREATE DATABASE `lodel2` CHARACTER SET utf8 COLLATE utf8_general_ci;
|
22
|
14
|
> GRANT ALL ON `lodel2`.* TO "lodel"@"localhost";
|
23
|
|
-
|
24
|
|
-** Apply patch(es) for django …
|
25
|
|
- - makemigrations_interactive_rename.patch => fix makemigrations interactive parameter
|
26
|
|
- cd path/to/django/
|
27
|
|
- patch -p2 < /path/to/lodel2/makemigrations_interactive_rename.patch
|
28
|
|
-
|
29
|
|
-** create tables for django
|
30
|
|
-
|
31
|
|
-if not clean :
|
32
|
|
- mysql
|
33
|
|
- > DROP DATABASE `lodel2`;
|
34
|
|
- recreate database
|
35
|
|
- rm -rf LodelTestInstance/migrations/
|
36
|
|
-
|
37
|
|
- ./manage.py makemigrations --empty LodelTestInstance
|
38
|
|
- ./manage.py migrate
|