|
@@ -0,0 +1,38 @@
|
|
1
|
+First test installation :
|
|
2
|
+
|
|
3
|
+- use python 3.4
|
|
4
|
+
|
|
5
|
+** install dependencies
|
|
6
|
+ pip install -r requirements.txt
|
|
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
|
+}
|
|
18
|
+
|
|
19
|
+** create DATABASES
|
|
20
|
+ mysql
|
|
21
|
+ > CREATE DATABASE `lodel2` CHARACTER SET utf8 COLLATE utf8_general_ci;
|
|
22
|
+ > 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
|