Wiki
Version 16 (Etienne Pallier, 03/18/2016 10:20 am)
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 | 3 | Etienne Pallier | h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}INSTALLATION% |
13 | 2 | Etienne Pallier | |
14 | 2 | Etienne Pallier | |
15 | 1 | Etienne Pallier | |
16 | 6 | Etienne Pallier | h3. Create database |
17 | 1 | Etienne Pallier | |
18 | 3 | Etienne Pallier | One liner: |
19 | 3 | Etienne Pallier | $ mysql -u root < pyros.sql |
20 | 1 | Etienne Pallier | |
21 | 3 | Etienne Pallier | Or : |
22 | 3 | Etienne Pallier | $ mysql -u root |
23 | 3 | Etienne Pallier | mysql> create database pyros; |
24 | 3 | Etienne Pallier | mysql> use pyros; |
25 | 3 | Etienne Pallier | mysql> source pyros.sql; |
26 | 1 | Etienne Pallier | |
27 | 3 | Etienne Pallier | ( |
28 | 3 | Etienne Pallier | TODO: |
29 | 3 | Etienne Pallier | mysql> grant all on pyros.* to pyros@localhost identified by ‘pyros’;) |
30 | 3 | Etienne Pallier | mysql> flush privileges; |
31 | 3 | Etienne Pallier | ) |
32 | 1 | Etienne Pallier | |
33 | 1 | Etienne Pallier | |
34 | 1 | Etienne Pallier | |
35 | 4 | Etienne Pallier | --- |
36 | 5 | Etienne Pallier | |
37 | 6 | Etienne Pallier | h3. Install python3.5 |
38 | 1 | Etienne Pallier | |
39 | 11 | Etienne Pallier | |
40 | 11 | Etienne Pallier | * Mac OS X : |
41 | 11 | Etienne Pallier | |
42 | 3 | Etienne Pallier | $ sudo port install python35 |
43 | 1 | Etienne Pallier | |
44 | 11 | Etienne Pallier | * Linux (Ubuntu) : |
45 | 1 | Etienne Pallier | |
46 | 11 | Etienne Pallier | $ sudo apt-get ... |
47 | 1 | Etienne Pallier | |
48 | 5 | Etienne Pallier | |
49 | 3 | Etienne Pallier | |
50 | 4 | Etienne Pallier | --- |
51 | 5 | Etienne Pallier | |
52 | 13 | Etienne Pallier | h3. Create project dir |
53 | 13 | Etienne Pallier | |
54 | 13 | Etienne Pallier | $ mkdir pyros |
55 | 13 | Etienne Pallier | |
56 | 13 | Etienne Pallier | |
57 | 13 | Etienne Pallier | --- |
58 | 13 | Etienne Pallier | |
59 | 14 | Etienne Pallier | h3. Create virtualenv with python3.5 dedicated to pyros project |
60 | 3 | Etienne Pallier | |
61 | 3 | Etienne Pallier | $ cd pyros/ |
62 | 3 | Etienne Pallier | |
63 | 3 | Etienne Pallier | $ which python3.5 |
64 | 3 | Etienne Pallier | /opt/local/bin/python3.5 |
65 | 3 | Etienne Pallier | |
66 | 15 | Etienne Pallier | $ virtualenv-3.5 venv_py35_pyros -p /opt/local/bin/python3.5 |
67 | 3 | Etienne Pallier | => creates a venv_py35_pyros/ folder inside pyros/ |
68 | 3 | Etienne Pallier | |
69 | 1 | Etienne Pallier | |
70 | 1 | Etienne Pallier | |
71 | 7 | Etienne Pallier | --- |
72 | 3 | Etienne Pallier | |
73 | 16 | Etienne Pallier | h3. Activate venv |
74 | 7 | Etienne Pallier | |
75 | 3 | Etienne Pallier | $ source venv_py35_pyros/bin/activate |
76 | 3 | Etienne Pallier | |
77 | 3 | Etienne Pallier | $ python -V |
78 | 3 | Etienne Pallier | Python 3.5.1 |
79 | 3 | Etienne Pallier | |
80 | 3 | Etienne Pallier | $ which pip |
81 | 1 | Etienne Pallier | …/pyros/venv_py35_pyros/bin/pip |
82 | 16 | Etienne Pallier | |
83 | 16 | Etienne Pallier | h3. From within the virtual environment, install needed python packages |
84 | 3 | Etienne Pallier | |
85 | 3 | Etienne Pallier | $ pip install --upgrade pip |
86 | 3 | Etienne Pallier | Collecting pip |
87 | 3 | Etienne Pallier | Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB) |
88 | 3 | Etienne Pallier | Installing collected packages: pip |
89 | 3 | Etienne Pallier | Found existing installation: pip 7.1.2 |
90 | 3 | Etienne Pallier | Uninstalling pip-7.1.2: |
91 | 3 | Etienne Pallier | Successfully uninstalled pip-7.1.2 |
92 | 3 | Etienne Pallier | Successfully installed pip-8.1.1 |
93 | 3 | Etienne Pallier | |
94 | 3 | Etienne Pallier | $ pip install django |
95 | 3 | Etienne Pallier | Collecting django |
96 | 3 | Etienne Pallier | Downloading Django-1.9.4-py2.py3-none-any.whl (6.6MB) |
97 | 3 | Etienne Pallier | Installing collected packages: django |
98 | 3 | Etienne Pallier | Successfully installed django-1.9.4 |
99 | 3 | Etienne Pallier | |
100 | 3 | Etienne Pallier | $ pip install --upgrade django |
101 | 3 | Etienne Pallier | Requirement already up-to-date: django in ./venv_py35_pyros/lib/python3.5/site-packages |
102 | 3 | Etienne Pallier | |
103 | 3 | Etienne Pallier | $ pip install django-admin-tools |
104 | 3 | Etienne Pallier | Collecting django-admin-tools |
105 | 3 | Etienne Pallier | Downloading django_admin_tools-0.7.2-py2.py3-none-any.whl (289kB) |
106 | 3 | Etienne Pallier | Installing collected packages: django-admin-tools |
107 | 3 | Etienne Pallier | Successfully installed django-admin-tools-0.7.2 |
108 | 3 | Etienne Pallier | |
109 | 3 | Etienne Pallier | $ pip install gunicorn |
110 | 3 | Etienne Pallier | Collecting gunicorn |
111 | 3 | Etienne Pallier | Downloading gunicorn-19.4.5-py2.py3-none-any.whl (112kB) |
112 | 3 | Etienne Pallier | Installing collected packages: gunicorn |
113 | 3 | Etienne Pallier | Successfully installed gunicorn-19.4.5 |
114 | 3 | Etienne Pallier | |
115 | 3 | Etienne Pallier | $ pip install mysqlclient |
116 | 3 | Etienne Pallier | Collecting mysqlclient |
117 | 3 | Etienne Pallier | Downloading mysqlclient-1.3.7.tar.gz (79kB) |
118 | 3 | Etienne Pallier | Building wheels for collected packages: mysqlclient |
119 | 3 | Etienne Pallier | Running setup.py bdist_wheel for mysqlclient ... error |
120 | 3 | Etienne Pallier | … |
121 | 3 | Etienne Pallier | ---------------------------------------- |
122 | 3 | Etienne Pallier | Failed building wheel for mysqlclient |
123 | 3 | Etienne Pallier | Running setup.py clean for mysqlclient |
124 | 3 | Etienne Pallier | Failed to build mysqlclient |
125 | 3 | Etienne Pallier | Installing collected packages: mysqlclient |
126 | 3 | Etienne Pallier | Running setup.py install for mysqlclient ... done |
127 | 3 | Etienne Pallier | Successfully installed mysqlclient-1.3.7 |
128 | 3 | Etienne Pallier | |
129 | 3 | Etienne Pallier | BOUH !!! |
130 | 3 | Etienne Pallier | |
131 | 3 | Etienne Pallier | $ pip install --upgrade wheel |
132 | 3 | Etienne Pallier | Collecting wheel |
133 | 3 | Etienne Pallier | Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB) |
134 | 3 | Etienne Pallier | Installing collected packages: wheel |
135 | 3 | Etienne Pallier | Found existing installation: wheel 0.24.0 |
136 | 3 | Etienne Pallier | Uninstalling wheel-0.24.0: |
137 | 3 | Etienne Pallier | Successfully uninstalled wheel-0.24.0 |
138 | 3 | Etienne Pallier | Successfully installed wheel-0.29.0 |
139 | 3 | Etienne Pallier | |
140 | 3 | Etienne Pallier | $ pip uninstall mysqlclient |
141 | 3 | Etienne Pallier | |
142 | 3 | Etienne Pallier | $ pip install mysqlclient |
143 | 3 | Etienne Pallier | Collecting mysqlclient |
144 | 3 | Etienne Pallier | Using cached mysqlclient-1.3.7.tar.gz |
145 | 3 | Etienne Pallier | Building wheels for collected packages: mysqlclient |
146 | 3 | Etienne Pallier | Running setup.py bdist_wheel for mysqlclient ... done |
147 | 3 | Etienne Pallier | Stored in directory: /Users/epallier/Library/Caches/pip/wheels/9b/06/50/d11418c26cf8f2156b13d4363b5afde8e7e75ebb8540d0228d |
148 | 3 | Etienne Pallier | Successfully built mysqlclient |
149 | 3 | Etienne Pallier | Installing collected packages: mysqlclient |
150 | 3 | Etienne Pallier | Successfully installed mysqlclient-1.3.7 |
151 | 3 | Etienne Pallier | |
152 | 3 | Etienne Pallier | YES !!! |
153 | 3 | Etienne Pallier | |
154 | 1 | Etienne Pallier | |
155 | 1 | Etienne Pallier | |
156 | 1 | Etienne Pallier | $ pip install django-debug-toolbar |
157 | 1 | Etienne Pallier | Collecting django-debug-toolbar |
158 | 1 | Etienne Pallier | Downloading django_debug_toolbar-1.4-py2.py3-none-any.whl (212kB) |
159 | 1 | 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) |
160 | 1 | Etienne Pallier | Collecting sqlparse (from django-debug-toolbar) |
161 | 1 | Etienne Pallier | Downloading sqlparse-0.1.19.tar.gz (58kB) |
162 | 1 | Etienne Pallier | Building wheels for collected packages: sqlparse |
163 | 1 | Etienne Pallier | Running setup.py bdist_wheel for sqlparse ... done |
164 | 1 | Etienne Pallier | Stored in directory: /Users/epallier/Library/Caches/pip/wheels/7b/d4/72/6011bb100dd5fc213164e4bbee13d4e03261dd54ce6a5de6b8 |
165 | 1 | Etienne Pallier | Successfully built sqlparse |
166 | 1 | Etienne Pallier | Installing collected packages: sqlparse, django-debug-toolbar |
167 | 1 | Etienne Pallier | Successfully installed django-debug-toolbar-1.4 sqlparse-0.1.19 |
168 | 1 | Etienne Pallier | |
169 | 1 | Etienne Pallier | $ pip install django-extensions |
170 | 1 | Etienne Pallier | Collecting django-extensions |
171 | 1 | Etienne Pallier | Downloading django_extensions-1.6.1-py2.py3-none-any.whl (202kB) |
172 | 1 | Etienne Pallier | Collecting six>=1.2 (from django-extensions) |
173 | 1 | Etienne Pallier | Downloading six-1.10.0-py2.py3-none-any.whl |
174 | 1 | Etienne Pallier | Installing collected packages: six, django-extensions |
175 | 1 | Etienne Pallier | Successfully installed django-extensions-1.6.1 six-1.10.0 |
176 | 1 | Etienne Pallier | |
177 | 1 | Etienne Pallier | $ pip install django-suit |
178 | 1 | Etienne Pallier | Collecting django-suit |
179 | 1 | Etienne Pallier | Downloading django-suit-0.2.18.tar.gz (587kB) |
180 | 1 | Etienne Pallier | Building wheels for collected packages: django-suit |
181 | 1 | Etienne Pallier | Running setup.py bdist_wheel for django-suit ... done |
182 | 1 | Etienne Pallier | Stored in directory: /Users/epallier/Library/Caches/pip/wheels/12/8b/9a/e02ab0ad9229881638aa040d47d77c8f562999533811927d41 |
183 | 1 | Etienne Pallier | Successfully built django-suit |
184 | 1 | Etienne Pallier | Installing collected packages: django-suit |
185 | 1 | Etienne Pallier | Successfully installed django-suit-0.2.18 |
186 | 1 | Etienne Pallier | |
187 | 12 | Etienne Pallier | |
188 | 12 | Etienne Pallier | |
189 | 12 | Etienne Pallier | --- |
190 | 12 | Etienne Pallier | |
191 | 12 | Etienne Pallier | h3. Create project dir |
192 | 12 | Etienne Pallier | |
193 | 12 | Etienne Pallier | $ mkdir pyros |
194 | 12 | Etienne Pallier | |
195 | 12 | Etienne Pallier | |
196 | 12 | Etienne Pallier | |
197 | 12 | Etienne Pallier | Exemple de bonne organisation : |
198 | 12 | Etienne Pallier | |
199 | 12 | Etienne Pallier | 1 projet = N applis |
200 | 12 | Etienne Pallier | (mais 1 appli peut faire partie de plusieurs projets) |
201 | 12 | Etienne Pallier | |
202 | 12 | Etienne Pallier | MONPROJET/ |
203 | 12 | Etienne Pallier | src/ |
204 | 12 | Etienne Pallier | monprojet/ |
205 | 12 | Etienne Pallier | appli1 |
206 | 12 | Etienne Pallier | appli2 |
207 | 12 | Etienne Pallier | … |
208 | 12 | Etienne Pallier | appliN |
209 | 12 | Etienne Pallier | public/ |
210 | 12 | Etienne Pallier | private/ |
211 | 12 | Etienne Pallier | requirements.txt |
212 | 12 | Etienne Pallier | |
213 | 12 | Etienne Pallier | |
214 | 12 | Etienne Pallier | |
215 | 12 | Etienne Pallier | --- |
216 | 12 | Etienne Pallier | |
217 | 12 | Etienne Pallier | h3. Set needed folders (inside pyros/) |
218 | 12 | Etienne Pallier | |
219 | 12 | Etienne Pallier | $ mkdir private public |
220 | 12 | Etienne Pallier | $ mkdir public/static |
221 | 1 | Etienne Pallier | |
222 | 3 | Etienne Pallier | |
223 | 7 | Etienne Pallier | --- |
224 | 3 | Etienne Pallier | |
225 | 7 | Etienne Pallier | h3. Create django project pyros |
226 | 7 | Etienne Pallier | |
227 | 3 | Etienne Pallier | $ django-admin startproject pyros |
228 | 3 | Etienne Pallier | |
229 | 3 | Etienne Pallier | $ tree pyros/ |
230 | 3 | Etienne Pallier | pyros/ |
231 | 3 | Etienne Pallier | ├── manage.py |
232 | 3 | Etienne Pallier | └── pyros |
233 | 3 | Etienne Pallier | ├── __init__.py |
234 | 3 | Etienne Pallier | ├── settings.py |
235 | 3 | Etienne Pallier | ├── urls.py |
236 | 3 | Etienne Pallier | └── wsgi.py |
237 | 3 | Etienne Pallier | |
238 | 3 | Etienne Pallier | |
239 | 3 | Etienne Pallier | $ mv pyros src |
240 | 3 | Etienne Pallier | |
241 | 3 | Etienne Pallier | $ cd src/ |
242 | 3 | Etienne Pallier | |
243 | 1 | Etienne Pallier | $ ./manage.py runserver |
244 | 3 | Etienne Pallier | (ou gunicorn pyros.wsgi) |
245 | 1 | Etienne Pallier | ==> http://localhost:8000 |
246 | 1 | Etienne Pallier | |
247 | 3 | Etienne Pallier | |
248 | 3 | Etienne Pallier | |
249 | 7 | Etienne Pallier | --- |
250 | 3 | Etienne Pallier | |
251 | 7 | Etienne Pallier | h3. Set Database mysql |
252 | 7 | Etienne Pallier | |
253 | 3 | Etienne Pallier | Edit src/pyros/settings.py |
254 | 3 | Etienne Pallier | |
255 | 3 | Etienne Pallier | DATABASES = { |
256 | 3 | Etienne Pallier | 'default': { |
257 | 3 | Etienne Pallier | 'ENGINE': 'django.db.backends.mysql', |
258 | 1 | Etienne Pallier | 'NAME': 'pyros', |
259 | 3 | Etienne Pallier | 'USER': 'root', |
260 | 1 | Etienne Pallier | 'PASSWORD': '' |
261 | 1 | Etienne Pallier | } |
262 | 3 | Etienne Pallier | } |
263 | 3 | Etienne Pallier | |
264 | 3 | Etienne Pallier | |
265 | 7 | Etienne Pallier | --- |
266 | 3 | Etienne Pallier | |
267 | 7 | Etienne Pallier | h3. Import database into django |
268 | 7 | Etienne Pallier | |
269 | 3 | Etienne Pallier | cd src/ |
270 | 3 | Etienne Pallier | |
271 | 3 | Etienne Pallier | $ ./manage.py inspectdb > models.py |
272 | 3 | Etienne Pallier | |
273 | 3 | Etienne Pallier | Traceback (most recent call last): |
274 | 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> |
275 | 3 | Etienne Pallier | import MySQLdb as Database |
276 | 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> |
277 | 3 | Etienne Pallier | import _mysql |
278 | 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 |
279 | 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 |
280 | 3 | Etienne Pallier | Reason: image not found |
281 | 3 | Etienne Pallier | |
282 | 3 | Etienne Pallier | => BOUH !!! |
283 | 3 | Etienne Pallier | |
284 | 3 | Etienne Pallier | LA SOLUTION EST ICI : http://stackoverflow.com/questions/6383310/python-mysqldb-library-not-loaded-libmysqlclient-18-dylib |
285 | 3 | Etienne Pallier | |
286 | 3 | Etienne Pallier | ( |
287 | 3 | Etienne Pallier | Apparemment, ceci aurait dû suffire: |
288 | 3 | Etienne Pallier | mkdir -p /usr/local/lib |
289 | 3 | Etienne Pallier | ln -s /usr/local/mysql/lib/libmysql* /usr/local/lib |
290 | 3 | Etienne Pallier | ) |
291 | 3 | Etienne Pallier | |
292 | 3 | Etienne Pallier | |
293 | 3 | Etienne Pallier | Mais j’ai fait ceci: |
294 | 3 | Etienne Pallier | |
295 | 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 |
296 | 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: |
297 | 1 | Etienne Pallier | libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0) |
298 | 10 | Etienne Pallier | ... |
299 | 3 | Etienne Pallier | |
300 | 3 | Etienne Pallier | $ locate libmysqlclient.18.dylib |
301 | 3 | Etienne Pallier | /Applications/XAMPP/xamppfiles/lib/libmysqlclient.18.dylib |
302 | 1 | Etienne Pallier | /Library/SystemMigration/History/Migration-68137DFB-CB6A-4FBB-81E2-11BDB5D01E48/QuarantineRoot/usr/lib/libmysqlclient.18.dylib |
303 | 1 | Etienne Pallier | |
304 | 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 |
305 | 1 | Etienne Pallier | |
306 | 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 |
307 | 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: |
308 | 10 | Etienne Pallier | /Applications/XAMPP/xamppfiles/lib/libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0) |
309 | 10 | Etienne Pallier | ... |
310 | 3 | Etienne Pallier | |
311 | 1 | Etienne Pallier | $ ./manage.py inspectdb > models.py |
312 | 1 | Etienne Pallier | |
313 | 3 | Etienne Pallier | => YES !!! |
314 | 3 | Etienne Pallier | |
315 | 3 | Etienne Pallier | |
316 | 3 | Etienne Pallier | |
317 | 7 | Etienne Pallier | --- |
318 | 3 | Etienne Pallier | |
319 | 7 | Etienne Pallier | h3. Create a django application pyrosapp |
320 | 7 | Etienne Pallier | |
321 | 3 | Etienne Pallier | $ ./manage.py startapp pyrosapp |
322 | 3 | Etienne Pallier | |
323 | 3 | Etienne Pallier | $ tree src |
324 | 3 | Etienne Pallier | src |
325 | 3 | Etienne Pallier | ├── db.sqlite3 |
326 | 3 | Etienne Pallier | ├── manage.py |
327 | 3 | Etienne Pallier | ├── pyros |
328 | 3 | Etienne Pallier | │ ├── __init__.py |
329 | 3 | Etienne Pallier | │ ├── __pycache__ |
330 | 3 | Etienne Pallier | │ │ ├── __init__.cpython-35.pyc |
331 | 3 | Etienne Pallier | │ │ ├── settings.cpython-35.pyc |
332 | 3 | Etienne Pallier | │ │ ├── urls.cpython-35.pyc |
333 | 3 | Etienne Pallier | │ │ └── wsgi.cpython-35.pyc |
334 | 3 | Etienne Pallier | │ ├── settings.py |
335 | 3 | Etienne Pallier | │ ├── urls.py |
336 | 3 | Etienne Pallier | │ └── wsgi.py |
337 | 3 | Etienne Pallier | └── pyrosapp |
338 | 3 | Etienne Pallier | ├── __init__.py |
339 | 1 | Etienne Pallier | ├── admin.py |
340 | 3 | Etienne Pallier | ├── apps.py |
341 | 1 | Etienne Pallier | ├── migrations |
342 | 1 | Etienne Pallier | │ └── __init__.py |
343 | 3 | Etienne Pallier | ├── models.py |
344 | 3 | Etienne Pallier | ├── tests.py |
345 | 3 | Etienne Pallier | └── views.py |
346 | 1 | Etienne Pallier | |
347 | 1 | Etienne Pallier | |
348 | 7 | Etienne Pallier | --- |
349 | 1 | Etienne Pallier | |
350 | 7 | Etienne Pallier | h3. Replace the default pyrosapp models.py with the inspectdb generated one |
351 | 7 | Etienne Pallier | |
352 | 3 | Etienne Pallier | $ mv models.py pyrosapp/ |
353 | 3 | Etienne Pallier | |
354 | 3 | Etienne Pallier | |
355 | 3 | Etienne Pallier | |
356 | 3 | Etienne Pallier | |
357 | 7 | Etienne Pallier | |
358 | 1 | Etienne Pallier | --- |
359 | 9 | Etienne Pallier | |
360 | 7 | Etienne Pallier | *TODO* |
361 | 7 | Etienne Pallier | |
362 | 7 | Etienne Pallier | h3. Fix and improve the inspectdb generated file models.py |
363 | 3 | Etienne Pallier | |
364 | 3 | Etienne Pallier | $ cd pyrosapp/ |
365 | 3 | Etienne Pallier | |
366 | 8 | Etienne Pallier | $ vi models.py |