@@ -155,127 +155,127 @@ and integrate systems more effectively.<br>
155
155
156
156
_ Crear Proyecto_
157
157
158
- ```
158
+ ``` bash
159
159
django-admin startproject nombreProyecto
160
160
```
161
161
162
162
_ Crear Aplicacion_
163
163
164
- ``` python
164
+ ``` bash
165
165
python manage.py startapp nombreAplicacion
166
166
```
167
167
168
168
_ Crear Entornos Virtual Windows - Linux_
169
169
170
- ``` python
170
+ ``` bash
171
171
python -m venv env
172
172
```
173
173
174
174
_ Activar Entorno Virtual_
175
175
176
176
_ Windows_
177
- ```
177
+ ``` bash
178
178
env\S cripts\a ctivate
179
179
```
180
180
181
181
_ Linux_
182
- ```
182
+ ``` bash
183
183
source env\b in\a ctivate
184
184
```
185
185
186
186
_ Migrar_
187
187
188
- ``` python
188
+ ``` bash
189
189
python manage.py migrate
190
190
```
191
191
192
192
_ Generar la Base de Datos_
193
193
194
- ``` python
194
+ ``` bash
195
195
python manage.py makemigrations
196
196
```
197
197
198
198
_ Actualiza Django_
199
199
200
- ``` python
200
+ ``` bash
201
201
pip install --upgrade Django
202
202
```
203
203
204
204
_ Actualizar PIP_
205
205
206
- ``` python
206
+ ``` bash
207
207
pip install --upgrade pip
208
208
```
209
209
210
210
_ Django Version_
211
211
212
- ```
212
+ ``` bash
213
213
pip install Django
214
214
```
215
215
216
216
_ Instalar requirements.txt_
217
217
218
- ``` python
218
+ ``` bash
219
219
pip install -r requirements.txt
220
220
```
221
221
222
222
_ Version de Django_
223
223
224
- ``` python
224
+ ``` bash
225
225
python -m django --version
226
226
```
227
227
228
228
_ Ejecutar Servidor Django_
229
229
230
- ``` python
230
+ ``` bash
231
231
python manage.py runserver
232
232
```
233
233
234
234
_ Check de la Aplicacion_
235
235
236
- ``` python
236
+ ``` bash
237
237
python manage.py check nombreAplicacion
238
238
```
239
239
240
240
_ Generar la Base de Datos_
241
241
242
- ``` python
242
+ ``` bash
243
243
python manage.py makemigrations
244
244
```
245
245
246
246
_ Generar Codigo SQL_
247
247
248
- ``` python
248
+ ``` bash
249
249
python manage.py sqlmigrate nombreAplicacion 000n
250
250
```
251
251
252
252
_ mysqlclient_
253
253
254
- ``` python
254
+ ``` bash
255
255
pip install mysqlclient
256
256
```
257
257
258
258
_ Django- yodbc azure_
259
259
260
- ``` python
260
+ ``` bash
261
261
pip install django-pyodbc-azure
262
262
```
263
263
264
264
_ Crear listado de requerimeintos_
265
265
266
- ``` python
266
+ ``` bash
267
267
python freeze > requerimientos.txt
268
268
```
269
269
270
270
_ Crear un superusuario_
271
271
272
- ``` python
272
+ ``` bash
273
273
python manage.py createsuperuser
274
274
```
275
275
276
276
_ Shell_
277
277
278
- ```
278
+ ``` bash
279
279
python manage.py shell
280
280
```
281
281
@@ -287,18 +287,18 @@ _Principales conectores a gestores de base de datos_
287
287
288
288
### Crear Super Usuario
289
289
290
- ``` python
290
+ ``` bash
291
291
python manage.py createsuperuser
292
292
```
293
293
294
294
### Conector PostgreSQL
295
295
296
296
_ Driver_
297
- ```
297
+ ``` bash
298
298
pip install psycopg2
299
299
```
300
300
301
- ```
301
+ ``` bash
302
302
pip install psycopg2-binary
303
303
```
304
304
0 commit comments