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