Wiki

Version 56 (Etienne Pallier, 03/18/2016 12:07 pm)

1 1 Etienne Pallier
h1. Technical Documentation for the PYROS project (FGFT-CC)
2 1 Etienne Pallier
3 1 Etienne Pallier
4 1 Etienne Pallier
HOWTO Format Redmine Wiki : http://www.redmine.org/projects/redmine/wiki/FrRedmineWikiFormatting
5 1 Etienne Pallier
6 1 Etienne Pallier
{{>toc}}
7 1 Etienne Pallier
8 1 Etienne Pallier
9 1 Etienne Pallier
10 3 Etienne Pallier
---
11 1 Etienne Pallier
12 17 Etienne Pallier
h2. %{margin-left:0px; font-weight:bold; font-size:25px;  display:block; color:red;}I - INSTALLATION%
13 2 Etienne Pallier
14 51 Etienne Pallier
h3. If necessary, install MySql
15 2 Etienne Pallier
16 49 Etienne Pallier
 * Linux Ubuntu
17 49 Etienne Pallier
<pre>
18 49 Etienne Pallier
TODO:
19 49 Etienne Pallier
$ sudo apt-get install mysql
20 49 Etienne Pallier
...
21 49 Etienne Pallier
</pre>
22 49 Etienne Pallier
23 49 Etienne Pallier
 * Linux CentOS
24 49 Etienne Pallier
<pre>
25 49 Etienne Pallier
TODO:
26 49 Etienne Pallier
$ sudo yum install mysql
27 49 Etienne Pallier
...
28 49 Etienne Pallier
</pre>
29 49 Etienne Pallier
30 49 Etienne Pallier
 * Mac OS X
31 49 Etienne Pallier
<pre>
32 49 Etienne Pallier
TODO:
33 49 Etienne Pallier
Install XAMPP
34 49 Etienne Pallier
(but you could also use the pre-installed Mac OS MySql)
35 49 Etienne Pallier
</pre>
36 49 Etienne Pallier
37 49 Etienne Pallier
 * Windows
38 49 Etienne Pallier
<pre>
39 49 Etienne Pallier
TODO:
40 49 Etienne Pallier
</pre>
41 49 Etienne Pallier
42 49 Etienne Pallier
43 49 Etienne Pallier
---
44 1 Etienne Pallier
45 6 Etienne Pallier
h3. Create database
46 1 Etienne Pallier
47 52 Etienne Pallier
48 52 Etienne Pallier
 * Linux and Mac OS X:
49 52 Etienne Pallier
<pre>
50 3 Etienne Pallier
One liner:
51 3 Etienne Pallier
$ mysql -u root < pyros.sql
52 1 Etienne Pallier
53 3 Etienne Pallier
Or :
54 3 Etienne Pallier
$ mysql -u root
55 3 Etienne Pallier
mysql> create database pyros;
56 3 Etienne Pallier
mysql> use pyros;
57 3 Etienne Pallier
mysql> source pyros.sql;
58 1 Etienne Pallier
59 3 Etienne Pallier
(
60 3 Etienne Pallier
TODO:
61 3 Etienne Pallier
mysql> grant all on pyros.* to pyros@localhost identified by ‘pyros’;)
62 3 Etienne Pallier
mysql> flush privileges;
63 3 Etienne Pallier
)
64 52 Etienne Pallier
</pre>
65 1 Etienne Pallier
66 53 Etienne Pallier
67 53 Etienne Pallier
 * Windows:
68 52 Etienne Pallier
<pre>
69 52 Etienne Pallier
TODO: Use phpmyadmin ?
70 52 Etienne Pallier
</pre>
71 1 Etienne Pallier
72 1 Etienne Pallier
73 4 Etienne Pallier
---
74 5 Etienne Pallier
75 6 Etienne Pallier
h3. Install python3.5
76 1 Etienne Pallier
77 11 Etienne Pallier
78 11 Etienne Pallier
 * Mac OS X :
79 23 Etienne Pallier
<pre>
80 24 Etienne Pallier
1) Installer MacPort
81 24 Etienne Pallier
(TODO: doc)
82 24 Etienne Pallier
83 24 Etienne Pallier
2) Installer le "port" python35
84 1 Etienne Pallier
$ sudo port install python35
85 23 Etienne Pallier
</pre>
86 1 Etienne Pallier
87 11 Etienne Pallier
 * Linux (Ubuntu) :
88 23 Etienne Pallier
<pre>
89 1 Etienne Pallier
$ sudo apt-get ...
90 23 Etienne Pallier
</pre>
91 1 Etienne Pallier
92 5 Etienne Pallier
93 3 Etienne Pallier
94 4 Etienne Pallier
---
95 5 Etienne Pallier
96 13 Etienne Pallier
h3. Create project dir
97 13 Etienne Pallier
98 13 Etienne Pallier
$ mkdir pyros
99 13 Etienne Pallier
100 13 Etienne Pallier
101 13 Etienne Pallier
---
102 13 Etienne Pallier
103 14 Etienne Pallier
h3. Create virtualenv with python3.5 dedicated to pyros project
104 3 Etienne Pallier
105 3 Etienne Pallier
$ cd pyros/
106 3 Etienne Pallier
107 3 Etienne Pallier
$ which python3.5
108 3 Etienne Pallier
/opt/local/bin/python3.5
109 3 Etienne Pallier
110 15 Etienne Pallier
$ virtualenv-3.5 venv_py35_pyros -p /opt/local/bin/python3.5
111 3 Etienne Pallier
=> creates a venv_py35_pyros/ folder inside pyros/
112 3 Etienne Pallier
113 1 Etienne Pallier
114 1 Etienne Pallier
115 7 Etienne Pallier
---
116 3 Etienne Pallier
117 16 Etienne Pallier
h3. Activate venv
118 7 Etienne Pallier
119 55 Etienne Pallier
<pre>
120 55 Etienne Pallier
121 3 Etienne Pallier
$ source venv_py35_pyros/bin/activate
122 3 Etienne Pallier
123 3 Etienne Pallier
$ python -V
124 3 Etienne Pallier
Python 3.5.1
125 3 Etienne Pallier
126 3 Etienne Pallier
$ which pip
127 1 Etienne Pallier
…/pyros/venv_py35_pyros/bin/pip
128 16 Etienne Pallier
129 18 Etienne Pallier
Upgrade pip to last version available :
130 3 Etienne Pallier
$ pip install --upgrade pip
131 3 Etienne Pallier
Collecting pip
132 3 Etienne Pallier
  Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB)
133 3 Etienne Pallier
Installing collected packages: pip
134 3 Etienne Pallier
  Found existing installation: pip 7.1.2
135 3 Etienne Pallier
    Uninstalling pip-7.1.2:
136 3 Etienne Pallier
      Successfully uninstalled pip-7.1.2
137 1 Etienne Pallier
Successfully installed pip-8.1.1
138 55 Etienne Pallier
139 55 Etienne Pallier
</pre>
140 18 Etienne Pallier
141 27 Etienne Pallier
h3. Install needed python packages (from within the virtual environment)
142 18 Etienne Pallier
143 3 Etienne Pallier
144 33 Etienne Pallier
*Install Django* :
145 32 Etienne Pallier
146 32 Etienne Pallier
<pre>
147 3 Etienne Pallier
$ pip install django
148 3 Etienne Pallier
Collecting django
149 3 Etienne Pallier
  Downloading Django-1.9.4-py2.py3-none-any.whl (6.6MB)
150 3 Etienne Pallier
Installing collected packages: django
151 3 Etienne Pallier
Successfully installed django-1.9.4
152 3 Etienne Pallier
153 3 Etienne Pallier
$ pip install django-admin-tools
154 3 Etienne Pallier
Collecting django-admin-tools
155 3 Etienne Pallier
  Downloading django_admin_tools-0.7.2-py2.py3-none-any.whl (289kB)
156 3 Etienne Pallier
Installing collected packages: django-admin-tools
157 3 Etienne Pallier
Successfully installed django-admin-tools-0.7.2
158 3 Etienne Pallier
159 21 Etienne Pallier
$ pip install django-debug-toolbar
160 21 Etienne Pallier
Collecting django-debug-toolbar
161 21 Etienne Pallier
  Downloading django_debug_toolbar-1.4-py2.py3-none-any.whl (212kB)
162 21 Etienne Pallier
Requirement already satisfied (use --upgrade to upgrade): Django>=1.7 in ./venv_py35_pyros/lib/python3.5/site-packages (from django-debug-toolbar)
163 21 Etienne Pallier
Collecting sqlparse (from django-debug-toolbar)
164 21 Etienne Pallier
  Downloading sqlparse-0.1.19.tar.gz (58kB)
165 21 Etienne Pallier
Building wheels for collected packages: sqlparse
166 21 Etienne Pallier
  Running setup.py bdist_wheel for sqlparse ... done
167 21 Etienne Pallier
  Stored in directory: /Users/epallier/Library/Caches/pip/wheels/7b/d4/72/6011bb100dd5fc213164e4bbee13d4e03261dd54ce6a5de6b8
168 21 Etienne Pallier
Successfully built sqlparse
169 21 Etienne Pallier
Installing collected packages: sqlparse, django-debug-toolbar
170 21 Etienne Pallier
Successfully installed django-debug-toolbar-1.4 sqlparse-0.1.19
171 21 Etienne Pallier
172 21 Etienne Pallier
$ pip install django-extensions
173 21 Etienne Pallier
Collecting django-extensions
174 21 Etienne Pallier
  Downloading django_extensions-1.6.1-py2.py3-none-any.whl (202kB)
175 21 Etienne Pallier
Collecting six>=1.2 (from django-extensions)
176 21 Etienne Pallier
  Downloading six-1.10.0-py2.py3-none-any.whl
177 21 Etienne Pallier
Installing collected packages: six, django-extensions
178 21 Etienne Pallier
Successfully installed django-extensions-1.6.1 six-1.10.0
179 21 Etienne Pallier
180 21 Etienne Pallier
$ pip install django-suit
181 21 Etienne Pallier
Collecting django-suit
182 21 Etienne Pallier
  Downloading django-suit-0.2.18.tar.gz (587kB)
183 21 Etienne Pallier
Building wheels for collected packages: django-suit
184 1 Etienne Pallier
  Running setup.py bdist_wheel for django-suit ... done
185 1 Etienne Pallier
  Stored in directory: /Users/epallier/Library/Caches/pip/wheels/12/8b/9a/e02ab0ad9229881638aa040d47d77c8f562999533811927d41
186 1 Etienne Pallier
Successfully built django-suit
187 1 Etienne Pallier
Installing collected packages: django-suit
188 1 Etienne Pallier
Successfully installed django-suit-0.2.18
189 21 Etienne Pallier
190 32 Etienne Pallier
</pre>
191 32 Etienne Pallier
192 33 Etienne Pallier
*Install the web application server gunicorn (will be used in production instead of the dev django web server)* :
193 32 Etienne Pallier
<pre>
194 25 Etienne Pallier
$ pip install gunicorn
195 25 Etienne Pallier
Collecting gunicorn
196 25 Etienne Pallier
  Downloading gunicorn-19.4.5-py2.py3-none-any.whl (112kB)
197 21 Etienne Pallier
Installing collected packages: gunicorn
198 26 Etienne Pallier
Successfully installed gunicorn-19.4.5
199 32 Etienne Pallier
</pre>
200 1 Etienne Pallier
201 33 Etienne Pallier
*Install the python mysql client*:
202 32 Etienne Pallier
<pre>
203 32 Etienne Pallier
$ pip install mysqlclient
204 32 Etienne Pallier
...
205 32 Etienne Pallier
</pre>
206 20 Etienne Pallier
207 33 Etienne Pallier
=> Issue under Mac OS X:
208 21 Etienne Pallier
<pre>
209 20 Etienne Pallier
210 3 Etienne Pallier
Collecting mysqlclient
211 3 Etienne Pallier
  Downloading mysqlclient-1.3.7.tar.gz (79kB)
212 1 Etienne Pallier
Building wheels for collected packages: mysqlclient
213 22 Etienne Pallier
  Running setup.py bdist_wheel for mysqlclient ... error
214 3 Etienne Pallier
215 3 Etienne Pallier
  ----------------------------------------
216 1 Etienne Pallier
  Failed building wheel for mysqlclient
217 1 Etienne Pallier
  Running setup.py clean for mysqlclient
218 1 Etienne Pallier
Failed to build mysqlclient
219 1 Etienne Pallier
Installing collected packages: mysqlclient
220 1 Etienne Pallier
  Running setup.py install for mysqlclient ... done
221 1 Etienne Pallier
Successfully installed mysqlclient-1.3.7
222 1 Etienne Pallier
223 1 Etienne Pallier
BOUH !!!
224 1 Etienne Pallier
225 1 Etienne Pallier
$ pip install --upgrade wheel
226 1 Etienne Pallier
Collecting wheel
227 1 Etienne Pallier
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
228 1 Etienne Pallier
Installing collected packages: wheel
229 1 Etienne Pallier
  Found existing installation: wheel 0.24.0
230 1 Etienne Pallier
    Uninstalling wheel-0.24.0:
231 1 Etienne Pallier
      Successfully uninstalled wheel-0.24.0
232 1 Etienne Pallier
Successfully installed wheel-0.29.0
233 1 Etienne Pallier
234 1 Etienne Pallier
$ pip uninstall mysqlclient
235 1 Etienne Pallier
236 1 Etienne Pallier
$ pip install mysqlclient
237 1 Etienne Pallier
Collecting mysqlclient
238 1 Etienne Pallier
  Using cached mysqlclient-1.3.7.tar.gz
239 1 Etienne Pallier
Building wheels for collected packages: mysqlclient
240 1 Etienne Pallier
  Running setup.py bdist_wheel for mysqlclient ... done
241 1 Etienne Pallier
  Stored in directory: /Users/epallier/Library/Caches/pip/wheels/9b/06/50/d11418c26cf8f2156b13d4363b5afde8e7e75ebb8540d0228d
242 1 Etienne Pallier
Successfully built mysqlclient
243 1 Etienne Pallier
Installing collected packages: mysqlclient
244 1 Etienne Pallier
Successfully installed mysqlclient-1.3.7
245 1 Etienne Pallier
246 1 Etienne Pallier
YES !!!
247 21 Etienne Pallier
</pre>
248 1 Etienne Pallier
249 1 Etienne Pallier
250 12 Etienne Pallier
251 12 Etienne Pallier
252 12 Etienne Pallier
---
253 12 Etienne Pallier
254 28 Etienne Pallier
h3. Project organization
255 12 Etienne Pallier
 
256 29 Etienne Pallier
Example of a good organization :
257 1 Etienne Pallier
258 29 Etienne Pallier
1 project = N applis
259 29 Etienne Pallier
(but 1 appli can be part of many projects)
260 30 Etienne Pallier
(then 1 appli = N models)
261 12 Etienne Pallier
262 31 Etienne Pallier
<pre>
263 34 Etienne Pallier
264 29 Etienne Pallier
MYPROJECT/
265 34 Etienne Pallier
266 50 Etienne Pallier
267 1 Etienne Pallier
	src/
268 1 Etienne Pallier
		myproject/
269 34 Etienne Pallier
		appli1/
270 34 Etienne Pallier
		appli2/
271 12 Etienne Pallier
272 34 Etienne Pallier
		appliN/
273 34 Etienne Pallier
274 12 Etienne Pallier
	public/
275 34 Etienne Pallier
		static/
276 34 Etienne Pallier
277 12 Etienne Pallier
	private/
278 1 Etienne Pallier
		requirements.txt
279 50 Etienne Pallier
280 50 Etienne Pallier
	venv_py35_pyros/
281 50 Etienne Pallier
282 1 Etienne Pallier
</pre>
283 1 Etienne Pallier
284 1 Etienne Pallier
285 37 Etienne Pallier
Set needed folders:
286 37 Etienne Pallier
<pre>
287 37 Etienne Pallier
$ cd pyros/
288 12 Etienne Pallier
$ mkdir private public
289 12 Etienne Pallier
$ mkdir public/static
290 37 Etienne Pallier
</pre>
291 3 Etienne Pallier
292 7 Etienne Pallier
---
293 3 Etienne Pallier
294 39 Etienne Pallier
h3. Create Django project pyros
295 7 Etienne Pallier
296 38 Etienne Pallier
<pre>
297 38 Etienne Pallier
$ cd pyros/
298 38 Etienne Pallier
299 3 Etienne Pallier
$ django-admin startproject pyros
300 3 Etienne Pallier
301 3 Etienne Pallier
$ tree pyros/
302 3 Etienne Pallier
pyros/
303 3 Etienne Pallier
├── manage.py
304 3 Etienne Pallier
└── pyros
305 3 Etienne Pallier
    ├── __init__.py
306 3 Etienne Pallier
    ├── settings.py
307 3 Etienne Pallier
    ├── urls.py
308 3 Etienne Pallier
    └── wsgi.py
309 3 Etienne Pallier
310 3 Etienne Pallier
$ mv pyros src
311 3 Etienne Pallier
312 3 Etienne Pallier
$ cd src/
313 3 Etienne Pallier
314 3 Etienne Pallier
$ ./manage.py runserver
315 40 Etienne Pallier
(or gunicorn pyros.wsgi)
316 1 Etienne Pallier
==> http://localhost:8000
317 38 Etienne Pallier
</pre>
318 3 Etienne Pallier
319 3 Etienne Pallier
320 7 Etienne Pallier
---
321 3 Etienne Pallier
322 42 Etienne Pallier
h3. Set Database engine as MySql
323 7 Etienne Pallier
324 3 Etienne Pallier
Edit src/pyros/settings.py
325 3 Etienne Pallier
326 41 Etienne Pallier
<pre>
327 3 Etienne Pallier
DATABASES = {
328 3 Etienne Pallier
    'default': {
329 3 Etienne Pallier
        'ENGINE': 'django.db.backends.mysql',
330 1 Etienne Pallier
        'NAME': 'pyros',
331 3 Etienne Pallier
        'USER': 'root',
332 1 Etienne Pallier
        'PASSWORD': ''
333 1 Etienne Pallier
    }
334 1 Etienne Pallier
}
335 41 Etienne Pallier
</pre>
336 3 Etienne Pallier
337 7 Etienne Pallier
---
338 3 Etienne Pallier
339 43 Etienne Pallier
h3. Import database into Django (with inspectdb)
340 7 Etienne Pallier
341 43 Etienne Pallier
$ cd src/
342 3 Etienne Pallier
343 3 Etienne Pallier
$ ./manage.py inspectdb > models.py
344 3 Etienne Pallier
345 44 Etienne Pallier
*Issue on Mac OS X*:
346 44 Etienne Pallier
<pre>
347 3 Etienne Pallier
Traceback (most recent call last):
348 3 Etienne Pallier
  File "/Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/django/db/backends/mysql/base.py", line 25, in <module>
349 3 Etienne Pallier
    import MySQLdb as Database
350 3 Etienne Pallier
  File "/Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/MySQLdb/__init__.py", line 19, in <module>
351 3 Etienne Pallier
    import _mysql
352 3 Etienne Pallier
ImportError: dlopen(/Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/_mysql.cpython-35m-darwin.so, 2): Library not loaded: libmysqlclient.18.dylib
353 3 Etienne Pallier
  Referenced from: /Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/_mysql.cpython-35m-darwin.so
354 3 Etienne Pallier
  Reason: image not found
355 3 Etienne Pallier
356 3 Etienne Pallier
=> BOUH !!!
357 3 Etienne Pallier
358 3 Etienne Pallier
LA SOLUTION EST ICI : http://stackoverflow.com/questions/6383310/python-mysqldb-library-not-loaded-libmysqlclient-18-dylib
359 3 Etienne Pallier
360 3 Etienne Pallier
(
361 3 Etienne Pallier
Apparemment, ceci aurait dû suffire:
362 3 Etienne Pallier
mkdir -p /usr/local/lib   
363 3 Etienne Pallier
ln -s /usr/local/mysql/lib/libmysql* /usr/local/lib
364 3 Etienne Pallier
)
365 3 Etienne Pallier
366 3 Etienne Pallier
Mais j’ai fait ceci:
367 3 Etienne Pallier
368 3 Etienne Pallier
$ otool -L /Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/_mysql.cpython-35m-darwin.so
369 3 Etienne Pallier
/Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/_mysql.cpython-35m-darwin.so:
370 1 Etienne Pallier
	libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0)
371 10 Etienne Pallier
...
372 3 Etienne Pallier
373 3 Etienne Pallier
$ locate libmysqlclient.18.dylib
374 3 Etienne Pallier
/Applications/XAMPP/xamppfiles/lib/libmysqlclient.18.dylib
375 1 Etienne Pallier
/Library/SystemMigration/History/Migration-68137DFB-CB6A-4FBB-81E2-11BDB5D01E48/QuarantineRoot/usr/lib/libmysqlclient.18.dylib
376 1 Etienne Pallier
377 1 Etienne Pallier
$ sudo install_name_tool -change libmysqlclient.18.dylib /Applications/XAMPP/xamppfiles/lib/libmysqlclient.18.dylib /Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/_mysql.cpython-35m-darwin.so
378 1 Etienne Pallier
379 10 Etienne Pallier
$ otool -L /Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/_mysql.cpython-35m-darwin.so
380 10 Etienne Pallier
/Users/epallier/Documents/_W_more/PROJECTS/GFT/SOFT/PYROS/pyros/venv_py35_pyros/lib/python3.5/site-packages/_mysql.cpython-35m-darwin.so:
381 10 Etienne Pallier
	/Applications/XAMPP/xamppfiles/lib/libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0)
382 10 Etienne Pallier
...
383 3 Etienne Pallier
384 1 Etienne Pallier
$ ./manage.py inspectdb > models.py
385 1 Etienne Pallier
386 3 Etienne Pallier
=> YES !!!
387 44 Etienne Pallier
</pre>
388 3 Etienne Pallier
389 3 Etienne Pallier
390 7 Etienne Pallier
---
391 3 Etienne Pallier
392 48 Etienne Pallier
h3. Create a Django application pyrosapp
393 7 Etienne Pallier
394 3 Etienne Pallier
$ ./manage.py startapp pyrosapp
395 3 Etienne Pallier
396 3 Etienne Pallier
$ tree src
397 3 Etienne Pallier
src
398 3 Etienne Pallier
├── manage.py
399 3 Etienne Pallier
├── pyros
400 3 Etienne Pallier
│   ├── __init__.py
401 3 Etienne Pallier
│   ├── __pycache__
402 3 Etienne Pallier
│   │   ├── __init__.cpython-35.pyc
403 3 Etienne Pallier
│   │   ├── settings.cpython-35.pyc
404 3 Etienne Pallier
│   │   ├── urls.cpython-35.pyc
405 3 Etienne Pallier
│   │   └── wsgi.cpython-35.pyc
406 3 Etienne Pallier
│   ├── settings.py
407 3 Etienne Pallier
│   ├── urls.py
408 3 Etienne Pallier
│   └── wsgi.py
409 3 Etienne Pallier
└── pyrosapp
410 3 Etienne Pallier
    ├── __init__.py
411 1 Etienne Pallier
    ├── admin.py
412 3 Etienne Pallier
    ├── apps.py
413 1 Etienne Pallier
    ├── migrations
414 1 Etienne Pallier
    │   └── __init__.py
415 3 Etienne Pallier
    ├── models.py
416 3 Etienne Pallier
    ├── tests.py
417 3 Etienne Pallier
    └── views.py
418 1 Etienne Pallier
419 1 Etienne Pallier
420 7 Etienne Pallier
---
421 1 Etienne Pallier
422 7 Etienne Pallier
h3. Replace the default pyrosapp models.py with the inspectdb generated one
423 7 Etienne Pallier
424 3 Etienne Pallier
$ mv models.py pyrosapp/
425 3 Etienne Pallier
426 3 Etienne Pallier
427 3 Etienne Pallier
428 3 Etienne Pallier
429 7 Etienne Pallier
430 1 Etienne Pallier
---
431 9 Etienne Pallier
432 47 Etienne Pallier
h3. *TODO: Fix and improve the inspectdb generated file models.py*
433 3 Etienne Pallier
434 3 Etienne Pallier
$ cd pyrosapp/
435 3 Etienne Pallier
436 8 Etienne Pallier
$ vi models.py