Skip to content

Commit b30de4f

Browse files
Update readme
1 parent e5d2510 commit b30de4f

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

README.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -155,127 +155,127 @@ and integrate systems more effectively.<br>
155155

156156
_Crear Proyecto_
157157

158-
```
158+
```bash
159159
django-admin startproject nombreProyecto
160160
```
161161

162162
_Crear Aplicacion_
163163

164-
```python
164+
```bash
165165
python manage.py startapp nombreAplicacion
166166
```
167167

168168
_Crear Entornos Virtual Windows - Linux_
169169

170-
```python
170+
```bash
171171
python -m venv env
172172
```
173173

174174
_Activar Entorno Virtual_
175175

176176
_Windows_
177-
```
177+
```bash
178178
env\Scripts\activate
179179
```
180180

181181
_Linux_
182-
```
182+
```bash
183183
source env\bin\activate
184184
```
185185

186186
_Migrar_
187187

188-
```python
188+
```bash
189189
python manage.py migrate
190190
```
191191

192192
_Generar la Base de Datos_
193193

194-
```python
194+
```bash
195195
python manage.py makemigrations
196196
```
197197

198198
_Actualiza Django_
199199

200-
```python
200+
```bash
201201
pip install --upgrade Django
202202
```
203203

204204
_Actualizar PIP_
205205

206-
```python
206+
```bash
207207
pip install --upgrade pip
208208
```
209209

210210
_Django Version_
211211

212-
```
212+
```bash
213213
pip install Django
214214
```
215215

216216
_Instalar requirements.txt_
217217

218-
```python
218+
```bash
219219
pip install -r requirements.txt
220220
```
221221

222222
_Version de Django_
223223

224-
```python
224+
```bash
225225
python -m django --version
226226
```
227227

228228
_Ejecutar Servidor Django_
229229

230-
```python
230+
```bash
231231
python manage.py runserver
232232
```
233233

234234
_Check de la Aplicacion_
235235

236-
```python
236+
```bash
237237
python manage.py check nombreAplicacion
238238
```
239239

240240
_Generar la Base de Datos_
241241

242-
```python
242+
```bash
243243
python manage.py makemigrations
244244
```
245245

246246
_Generar Codigo SQL_
247247

248-
```python
248+
```bash
249249
python manage.py sqlmigrate nombreAplicacion 000n
250250
```
251251

252252
_mysqlclient_
253253

254-
```python
254+
```bash
255255
pip install mysqlclient
256256
```
257257

258258
_Django- yodbc azure_
259259

260-
```python
260+
```bash
261261
pip install django-pyodbc-azure
262262
```
263263

264264
_Crear listado de requerimeintos_
265265

266-
```python
266+
```bash
267267
python freeze > requerimientos.txt
268268
```
269269

270270
_Crear un superusuario_
271271

272-
```python
272+
```bash
273273
python manage.py createsuperuser
274274
```
275275

276276
_Shell_
277277

278-
```
278+
```bash
279279
python manage.py shell
280280
```
281281

@@ -287,18 +287,18 @@ _Principales conectores a gestores de base de datos_
287287

288288
### Crear Super Usuario
289289

290-
```python
290+
```bash
291291
python manage.py createsuperuser
292292
```
293293

294294
### Conector PostgreSQL
295295

296296
_Driver_
297-
```
297+
```bash
298298
pip install psycopg2
299299
```
300300

301-
```
301+
```bash
302302
pip install psycopg2-binary
303303
```
304304

0 commit comments

Comments
 (0)